summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorlen-odoo <len@odoo.com>2018-12-03 08:56:48 +0000
committerlen-odoo <len@odoo.com>2018-12-05 08:15:21 +0000
commit97aec9f836bf4154e95fa9857cef5e31cbad5d00 (patch)
treea854f20328d63e24b28de5f27b81a4a7994a66e5 /addons
parent332d43ebd4a17b10b19a930812e8c5475830804a (diff)
[FIX] account: hide meaningless measures from the pivot view
The fields amount_total, amount_total_signed, residual, residual_signed, all sum values that are unsigned or in different units, as they may be in different currencies. Therefore their display in the pivot view can be confusing, misleading, and may lead people to file bug reports. Since support for hiding measures has been added in commit 24f7c7ce7f, we remove these fields from view. opw 1909046 closes odoo/odoo#29211
Diffstat (limited to 'addons')
-rw-r--r--addons/account/views/account_invoice_view.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml
index 2617974de75..5df72699ccd 100644
--- a/addons/account/views/account_invoice_view.xml
+++ b/addons/account/views/account_invoice_view.xml
@@ -20,7 +20,11 @@
<field name="arch" type="xml">
<pivot string="Invoices" display_quantity="true">
<field name="partner_id"/>
- <field name="amount_total_signed" type="measure"/>
+ <field name="amount_total_company_signed" type="measure"/>
+ <field name="amount_total_signed" invisible="1"/>
+ <field name="amount_total" invisible="1"/>
+ <field name="residual_signed" invisible="1"/>
+ <field name="residual" invisible="1"/>
</pivot>
</field>
</record>