Fix domain "Lines to Pay" according to the domain on Payment
- Only posted line should be shown - The account kind must be the same for Payable/Receivable window domain issue4958 review24371002
This commit is contained in:
1 parent
b20faf7595
commit
39561c5fbb
1 file changed
+3
-3
+3
-3
@@ -15,7 +15,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Lines to Pay</field>
|
||||
<field name="res_model">account.move.line</field>
|
||||
<field name="domain"
|
||||
eval="[('account.kind', 'in', ['receivable', 'payable']), ('party', '!=', None), ('reconciliation', '=', None), ('payment_amount', '!=', 0)]"
|
||||
eval="[('account.kind', 'in', ['receivable', 'payable']), ('party', '!=', None), ('reconciliation', '=', None), ('payment_amount', '!=', 0), ('move_state', '=', 'posted')]"
|
||||
pyson="1"/>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_move_line_form_view1">
|
||||
@@ -28,7 +28,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Payable</field>
|
||||
<field name="sequence" eval="10"/>
|
||||
<field name="domain"
|
||||
eval="['OR', ('credit', '>', 0), ('debit', '<', 0)]"
|
||||
eval="[('account.kind', '=', 'payable'), ['OR', ('credit', '>', 0), ('debit', '<', 0)]]"
|
||||
pyson="1"/>
|
||||
<field name="act_window" ref="act_move_line_form"/>
|
||||
</record>
|
||||
@@ -37,7 +37,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Receivable</field>
|
||||
<field name="sequence" eval="20"/>
|
||||
<field name="domain"
|
||||
eval="['OR', ('debit', '>', 0), ('credit', '<', 0)]"
|
||||
eval="[('account.kind', '=', 'receivable'), ['OR', ('debit', '>', 0), ('credit', '<', 0)]]"
|
||||
pyson="1"/>
|
||||
<field name="act_window" ref="act_move_line_form"/>
|
||||
</record>
|
||||
|
||||
Reference in new issue
Block a user