summaryrefslogtreecommitdiff
path: root/addons/payment
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/payment
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/payment')
-rw-r--r--addons/payment/views/payment_views.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/payment/views/payment_views.xml b/addons/payment/views/payment_views.xml
index 63f26f2b7a8..9925b8d1a86 100644
--- a/addons/payment/views/payment_views.xml
+++ b/addons/payment/views/payment_views.xml
@@ -279,6 +279,7 @@
<div class="col-6">
<span class="float-right">
<field name="amount" widget="monetary"/>
+ <field name="currency_id" invisible="1"/>
</span>
</div>
</div>