[FIX] account: Fix groups in account.move form
When having only invoicing but being in multi-currency, the journal is not visible but "in USD" is displayed. X-original-commit: e813b559121792f03f555b1126f5627570913b96 Part-of: odoo/odoo#104389
This commit is contained in:
@@ -831,16 +831,19 @@
|
||||
<label for="journal_id"
|
||||
groups="account.group_account_readonly"
|
||||
invisible="context.get('default_journal_id') and context.get('move_type', 'entry') != 'entry'"/>
|
||||
<div name="journal_div" class="d-flex" invisible="context.get('default_journal_id') and context.get('move_type', 'entry') != 'entry'">
|
||||
<div name="journal_div"
|
||||
class="d-flex"
|
||||
groups="account.group_account_readonly"
|
||||
invisible="context.get('default_journal_id') and context.get('move_type', 'entry') != 'entry'">
|
||||
<field name="journal_id"
|
||||
groups="account.group_account_readonly"
|
||||
options="{'no_create': True, 'no_open': True}"
|
||||
attrs="{'readonly': [('posted_before', '=', True)]}"/>
|
||||
<span class="oe_inline o_form_label mx-3"
|
||||
groups="base.group_multi_currency" attrs="{'invisible': [('move_type', '=', 'entry')]}"> in </span>
|
||||
groups="base.group_multi_currency"
|
||||
attrs="{'invisible': [('move_type', '=', 'entry')]}"> in </span>
|
||||
<field name="currency_id"
|
||||
groups="base.group_multi_currency"
|
||||
attrs="{'readonly': [('state', '!=', 'draft')], 'invisible': [('move_type', '=', 'entry')]}"/>
|
||||
groups="base.group_multi_currency"
|
||||
attrs="{'readonly': [('state', '!=', 'draft')], 'invisible': [('move_type', '=', 'entry')]}"/>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user