[19.0][ADD] website_sale_product_inquiry#1202
Conversation
|
FYI, tests are failing because of the following warning from the module website_sale_checkout_skip_payment |
| class CrmLead(models.Model): | ||
| _inherit = "crm.lead" | ||
|
|
||
| product_id = fields.Many2one( |
There was a problem hiding this comment.
Not sure if product_id is "too generic" for the purpose we are doing in here.
fa0eaf3 to
af133df
Compare
| id="inquiryContactName" | ||
| name="contact_name" | ||
| required="required" | ||
| placeholder="Your name" |
There was a problem hiding this comment.
Could you also pre-fill the name based on the logged in user name?
There was a problem hiding this comment.
Done, also prefill the company name and phone based on the login user.
af133df to
ed61277
Compare
|
Tests failing. |
tests are failing because of the following warning from the module website_sale_checkout_skip_payment |
Could you do another PR solving it? |
| id="inquiryPhone" | ||
| name="phone" | ||
| placeholder="Your phone number" | ||
| t-att-value="(website.env.user.partner_id.phone or website.env.user.partner_id.mobile) if not website.env.user._is_public() else None" |
There was a problem hiding this comment.
remove mobile as it is not a standard field for res.partner (added by partner_mobile OCA module)
ed61277 to
e62d7de
Compare
|
e62d7de to
115c96d
Compare
This module adds a new button on the product page to inquire about the product. On submitting the inquiry form, it will create a lead with details.
@ForgeFlow