diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-06-04 15:51:37 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-09-02 13:33:57 +0000 |
| commit | 9c1c848ad1e8fef11320e2a162b008de7e304bcb (patch) | |
| tree | c8a97aef0a041d961aa896e6663cfe96054b0b26 /addons/purchase/views | |
| parent | 90f8e9255fa46c408763346ed135d9e561ae7fd5 (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/purchase/views')
| -rw-r--r-- | addons/purchase/views/purchase_views.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index 46689223a91..db50323004d 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -674,6 +674,7 @@ <field name="product_qty"/> <field name="product_uom" groups="uom.group_uom"/> <field name="price_subtotal" widget="monetary"/> + <field name="currency_id" invisible="1"/> <field name="date_planned" widget="date"/> </tree> </field> |
