[FIX] account: hide currency field when not in multi_currency
There is a bug where the currency field is always visible/editable in the account_move view, even when multi_currency is disabled. This commit fix that issue. Task id #2318610 closes odoo/odoo#57292 X-original-commit: 93b02ae2ddc7d71b8bbfe82bceededa13ef70e0e Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
@@ -678,12 +678,12 @@
|
||||
options="{'no_create': True}"
|
||||
attrs="{'readonly': [('posted_before', '=', True)]}"/>
|
||||
<span class="oe_inline o_form_label mx-3 oe_read_only"
|
||||
groups="account.group_account_readonly,base.group_multi_currency"> in </span>
|
||||
groups="base.group_multi_currency"> in </span>
|
||||
<!-- Bigger margin on the left because in edit mode the external link button covers the text -->
|
||||
<span class="oe_inline o_form_label mr-3 ml-5 oe_edit_only"
|
||||
groups="account.group_account_readonly,base.group_multi_currency"> in </span>
|
||||
groups="base.group_multi_currency"> in </span>
|
||||
<field name="currency_id"
|
||||
groups="account.group_account_readonly,base.group_multi_currency"
|
||||
groups="base.group_multi_currency"
|
||||
attrs="{'readonly': [('posted_before', '=', True)]}"/>
|
||||
</div>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user