[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.
There was a problem hiding this comment.
Yeap, I agree. Perhaps consider renaming to inquired_product_id
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
115c96d to
6718c93
Compare
| # Copyright 2026 ForgeFlow S.L. | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
|
There was a problem hiding this comment.
| # Copyright 2026 ForgeFlow S.L. | |
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
nitpicking: not needed in init.py files
| class CrmLead(models.Model): | ||
| _inherit = "crm.lead" | ||
|
|
||
| product_id = fields.Many2one( |
There was a problem hiding this comment.
Yeap, I agree. Perhaps consider renaming to inquired_product_id
|
@JasminSForgeFlow Can you attend to the comments? |
6718c93 to
b8cc473
Compare
Done, Thanks |
9254812 to
b8cc473
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