summaryrefslogtreecommitdiff
path: root/addons/lunch
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/lunch
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/lunch')
-rw-r--r--addons/lunch/views/lunch_product_views.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/lunch/views/lunch_product_views.xml b/addons/lunch/views/lunch_product_views.xml
index b84f1d6b933..99f002c958d 100644
--- a/addons/lunch/views/lunch_product_views.xml
+++ b/addons/lunch/views/lunch_product_views.xml
@@ -104,6 +104,7 @@
<field name="description"/>
<field name="product_id" invisible="1"/>
<field name="price" widget="monetary"/>
+ <field name="currency_id" invisible="1"/>
</tree>
</field>
</record>