[FIX] account: reference field appear on account.move form
- Specifically, it did not appear for misc operations & credit notes - Currency only appear if group_multi_currency - Fix label for journal_id appearing based on group closes odoo/odoo#49671 X-original-commit: 62e54cb8960cd84484d462dc8c7d7c1e89a9eacd Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
@@ -612,6 +612,7 @@
|
||||
<label for="ref" string="Bill Reference"
|
||||
attrs="{'invisible':[('move_type', 'not in', ('in_invoice', 'in_receipt', 'in_refund'))]}" />
|
||||
<field name="ref" nolabel="1" attrs="{'invisible':[('move_type', 'not in', ('in_invoice', 'in_receipt', 'in_refund'))]}" />
|
||||
<field name="ref" attrs="{'invisible':[('move_type', 'in', ('in_invoice', 'in_receipt', 'in_refund', 'out_invoice', 'out_refund'))]}"/>
|
||||
<field name="payment_reference"
|
||||
attrs="{'invisible': ['|',('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt')), ('state', '=', 'draft')], 'readonly': [('state', '!=', 'draft')]}"/>
|
||||
<field name="partner_bank_id"
|
||||
@@ -657,6 +658,7 @@
|
||||
</div>
|
||||
|
||||
<label for="journal_id"
|
||||
groups="account.group_account_readonly"
|
||||
invisible="context.get('default_journal_id') and context.get('move_type', 'entry') != 'entry'"/>
|
||||
<div class="d-flex" invisible="context.get('default_journal_id') and context.get('move_type', 'entry') != 'entry'">
|
||||
<field name="journal_id"
|
||||
@@ -664,12 +666,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"> in </span>
|
||||
groups="account.group_account_readonly,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"> in </span>
|
||||
groups="account.group_account_readonly,base.group_multi_currency"> in </span>
|
||||
<field name="currency_id"
|
||||
groups="account.group_account_readonly"
|
||||
groups="account.group_account_readonly,base.group_multi_currency"
|
||||
attrs="{'readonly': [('posted_before', '=', True)]}"/>
|
||||
</div>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user