[FIX] sale,purchase: Add currency symbol in tree view

In invisible to make the 'monetary' widget work.
Makes sense as it is the same behaviour as the form view where the currency is displayed on monetary fields, even if the use has no multicurrency acces.

Closes #14714
This commit is contained in:
Alexis de Lattre
2016-12-14 10:42:29 +01:00
committed by Martin Trigaux
parent 951d63daf3
commit 0df9a6cc2a
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -384,6 +384,7 @@
<field name="origin"/>
<field name="amount_untaxed" sum="Total Untaxed amount" string="Untaxed" widget="monetary"/>
<field name="amount_total" sum="Total amount" widget="monetary"/>
<field name="currency_id" invisible="1"/>
<field name="state"/>
<field name="invoice_status" invisible="not context.get('show_purchase', False)"/>
</tree>
+2
View File
@@ -116,6 +116,7 @@
<field name="partner_id"/>
<field name="user_id"/>
<field name="amount_total" sum="Total Tax Included" widget="monetary"/>
<field name="currency_id" invisible="1"/>
<field name="invoice_status"/>
<field name="state" invisible="1"/>
</tree>
@@ -134,6 +135,7 @@
<field name="partner_id"/>
<field name="user_id"/>
<field name="amount_total" sum="Total Tax Included" widget="monetary"/>
<field name="currency_id" invisible="1"/>
<field name="state"/>
</tree>
</field>