summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMiku Laitinen <miku.laitinen@gmail.com>2017-02-14 17:42:13 +0200
committerMartin Trigaux <mart-e@users.noreply.github.com>2017-02-14 16:42:13 +0100
commit6d9bf4e5f2f2cdc5a5ede9b39fac9926158c5bc0 (patch)
tree7d3b2df0dd43e9468507673c999bd2886d4b9230 /addons
parent7a03f9ce934814aaf7e8b57a0a16fff487b9e1b8 (diff)
[FIX] sale: display discount field
On the customer invoice lines if sale module is installed. 4977bced replaced 4 groups in account and only 3 xpath in sale. Closes #15493
Diffstat (limited to 'addons')
-rw-r--r--addons/sale/views/sale_views.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml
index 6f5dab1225d..2405cf6c8fc 100644
--- a/addons/sale/views/sale_views.xml
+++ b/addons/sale/views/sale_views.xml
@@ -664,6 +664,9 @@
<xpath expr="//page/field[@name='invoice_line_ids']/tree/field[@name='product_id']" position="after">
<field name="layout_category_id" groups="sale.group_sale_layout"/>
</xpath>
+ <xpath expr="//field[@name='discount']" position="attributes">
+ <attribute name="groups">sale.group_discount_per_so_line</attribute>
+ </xpath>
</data>
</field>
</record>