fix domain: merge account.kind and account.type

This commit is contained in:
?ngel ?lvarez 2019-04-02 16:12:26 +02:00
parent b474a02969
commit 5fca6f20a5
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ copyright notices and license terms. -->
<field name="name">Netting</field>
<field name="sequence" eval="30"/>
<field name="domain"
eval="[('account.kind', 'in', ['payable','receivable']), ('netting_moves', '=', True)]"
eval="[('OR', ('account.type.payable', '=', True), ('account.type.receivable', '=', True)), ('netting_moves', '=', True)]"
pyson="1"/>
<field name="act_window" ref="account_payment.act_move_line_form"/>
</record>
@ -70,7 +70,7 @@ copyright notices and license terms. -->
<field name="name">Payable with reverse moves</field>
<field name="sequence" eval="13"/>
<field name="domain"
eval="[('account.kind', '=', 'payable'),('reverse_moves', '=', True)]"
eval="[('account.type.payable', '=', True), ('reverse_moves', '=', True)]"
pyson="1"/>
<field name="act_window" ref="account_payment.act_move_line_form"/>
</record>
@ -79,7 +79,7 @@ copyright notices and license terms. -->
<field name="name">Receivable with reverse moves</field>
<field name="sequence" eval="23"/>
<field name="domain"
eval="[('account.kind', '=', 'receivable'),('reverse_moves', '=', True)]"
eval="[('account.type.receivable', '=', True), ('reverse_moves', '=', True)]"
pyson="1"/>
<field name="act_window" ref="account_payment.act_move_line_form"/>
</record>