Skip to content
Snippets Groups Projects
Commit 0106fcd5 authored by Lucas Perais (lpe)'s avatar Lucas Perais (lpe)
Browse files

[FIX] website_quote: change website_description when the template id changes


Have a SO with a partner in another language
Apply a quote template to a SO
Customize the portal view to show website_description of a product on the template
Translate it
Show the SO on the portal

Before this commit, the description of the product was not translated
This was because the field was not included in the onchange of template_id
causing that field to never have changed, that is, it kept the description
done injected with the first write

After this commit, the description is changed according to the partner's lang

OPW 1960977

closes odoo/odoo#32825

Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
parent 0229ef4c
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,12 @@
class="o_open_quotation" string="Preview"
attrs="{'invisible': [('template_id', '=', False)]}"/>
</xpath>
<xpath expr="//page/field[@name='order_line']/tree/field[@name='name']" position="after">
<field name="website_description" invisible="1" readonly="1"/>
</xpath>
<xpath expr="//page/field[@name='order_line']/form/field[@name='name']" position="after">
<field name="website_description" invisible="1" readonly="1"/>
</xpath>
<xpath expr="//page/field[@name='order_line']/.." position="after">
<page string="Suggested Products">
<field name="quote_viewed" invisible="1"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment