Skip to content
Permalink
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 #32825

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
  • Loading branch information...
kebeclibre committed Apr 19, 2019
1 parent 0229ef4 commit 0106fcd59c8c97b1a1e39a263f305650978c0606
Showing with 6 additions and 0 deletions.
  1. +6 −0 addons/website_quote/views/sale_order_views.xml
@@ -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 comments on commit 0106fcd

Please sign in to comment.
You can’t perform that action at this time.