summaryrefslogtreecommitdiff
path: root/addons/account/views/partner_view.xml
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-06-04 15:51:37 +0000
committerThibault Delavallée <tde@odoo.com>2020-09-02 13:33:57 +0000
commit9c1c848ad1e8fef11320e2a162b008de7e304bcb (patch)
treec8a97aef0a041d961aa896e6663cfe96054b0b26 /addons/account/views/partner_view.xml
parent90f8e9255fa46c408763346ed135d9e561ae7fd5 (diff)
[FIX] various: enforce currency presence for monetary widgets
When a field is specified as widget="monetary" it makes sense to have the currency actually shows. It won't happen if currency field is not present within the view. An heuristic to detect missing currency field presence when using monetary fields or monetary widget tag will land soon in master. As this commit targets a stable version only view fixes are provided. Task ID-2329114 PR #56946
Diffstat (limited to 'addons/account/views/partner_view.xml')
-rw-r--r--addons/account/views/partner_view.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml
index 1b1fdae71c3..b232c4e96bf 100644
--- a/addons/account/views/partner_view.xml
+++ b/addons/account/views/partner_view.xml
@@ -105,6 +105,7 @@
context="{'default_partner_id': active_id}">
<div class="o_form_field o_stat_info">
<span class="o_stat_value">
+ <field name="currency_id" invisible="1"/>
<field name="total_invoiced" widget='monetary' options="{'currency_field': 'currency_id'}"/>
</span>
<span class="o_stat_text">Invoiced</span>