feat: Add company_id field to the batch payment direct payment line tree view and invisibly to its form view.
This commit is contained in:
parent
69f874b38c
commit
eb424840ce
@ -10,6 +10,7 @@
|
||||
<xpath expr="//field[@name='direct_payment_line_ids']" position="replace">
|
||||
<field name="direct_payment_line_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="company_id" options="{'no_create': True}"/>
|
||||
<field name="partner_id" domain="parent.batch_type == 'outbound' and [('supplier_rank', '>', 0)] or [('customer_rank', '>', 0)]" options="{'no_create': True}"/>
|
||||
<field name="amount" sum="Total"/>
|
||||
<field name="expense_account_id"/>
|
||||
@ -21,6 +22,7 @@
|
||||
<form>
|
||||
<group>
|
||||
<group name="payment_info">
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="partner_id" domain="parent.batch_type == 'outbound' and [('supplier_rank', '>', 0)] or [('customer_rank', '>', 0)]"/>
|
||||
<field name="amount"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user