Skip to content

Commit

Permalink
[FIX] sale_quotation_builder: have template option description
Browse files Browse the repository at this point in the history
The quotation template edition allows to save and use the description
of an optional product.

But when a quotation template is set, the description of optional
product is lost so we the optional product description was never used.

opw-2260457
closes odoo#52133

Signed-off-by: Nicolas Lempereur (nle) <[email protected]>
  • Loading branch information
nle-odoo committed May 28, 2020
1 parent d2174b3 commit 81d13f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions addons/sale_quotation_builder/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
<field name="website_description" invisible="1" readonly="1"/>
</xpath>

<xpath expr="//page/field[@name='sale_order_option_ids']/kanban/field[@name='product_id']" position="after">
<field name="website_description" invisible="1" readonly="1" force_save="1"/>
</xpath>
<xpath expr="//page/field[@name='sale_order_option_ids']/form//field[@name='name']" position="after">
<field name="website_description" invisible="1" readonly="1" force_save="1"/>
</xpath>
<xpath expr="//page/field[@name='sale_order_option_ids']/tree/field[@name='name']" position="after">
<field name="website_description" invisible="1" readonly="1" force_save="1"/>
</xpath>

<xpath expr="//button[@name='button_add_to_order']" position="after">
<field name="website_description" invisible="1"/>
</xpath>
Expand Down

0 comments on commit 81d13f4

Please sign in to comment.