|
|
|
@ -13,6 +13,9 @@
|
|
|
|
|
<field name="step" widget="statusbar" options="{'clickable': True}"/>
|
|
|
|
|
</header>
|
|
|
|
|
<group>
|
|
|
|
|
<field name="operating_journal_id" string="Compte de destination" readonly='1' attrs="{'invisible': [('operation_type', '!=', 'deposit')]}"/>
|
|
|
|
|
<field name="operating_journal_id" string="Compte de provenance" readonly='1' attrs="{'invisible': [('operation_type', '!=', 'order')]}"/>
|
|
|
|
|
<field name="operating_journal_id" string="Compte" readonly='1' attrs="{'invisible': [('operation_type', 'in', ['order', 'deposit'])]}"/>
|
|
|
|
|
<!-- Invisible fields-->
|
|
|
|
|
<field name="company_id" invisible='1'/>
|
|
|
|
|
<field name="currency_id" invisible='1'/>
|
|
|
|
@ -24,9 +27,11 @@
|
|
|
|
|
<group name="Type of Partner" id="partner_type_choice">
|
|
|
|
|
<field name="has_partner"/>
|
|
|
|
|
</group>
|
|
|
|
|
<group name="Account of Partner" id="partner_account_choice">
|
|
|
|
|
<field name="bank_journal_id" attrs="{'invisible': [('has_partner', '!=', 'bktobk')]}"/>
|
|
|
|
|
<field name="partner_id" attrs="{'invisible': [('has_partner', '!=', 'other')]}"/>
|
|
|
|
|
<group name="Account of Partner" id="partner_account_choice" attrs="{'invisible': [('has_partner', '!=', 'other')]}">
|
|
|
|
|
<field name="partner_id" domain="[('id', '!=', context.get('uid'))]"/>
|
|
|
|
|
</group>
|
|
|
|
|
<group name="Counterpart Journal" id="counterpart_journal_choice" attrs="{'invisible': [('has_partner', '!=', 'bktobk')]}">
|
|
|
|
|
<field name="counterpart_journal_id" domain="[('type', 'in', ['bank', 'cash']), ('id','!=', context.get('default_operating_journal_id'))]"/>
|
|
|
|
|
</group>
|
|
|
|
|
</group>
|
|
|
|
|
<group name="Main Content" id="content" attrs="{'invisible': [('step', '!=', 'content')]}">
|
|
|
|
|