changeset eccf33e00f99 in modules/account_payment_clearing:default
details:
https://hg.tryton.org/modules/account_payment_clearing?cmd=changeset;node=eccf33e00f99
description:
Merge account kind and account type
issue4990
review68401002
diffstat:
payment.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r a890690b9e54 -r eccf33e00f99 payment.py
--- a/payment.py Fri Mar 22 15:33:43 2019 +0100
+++ b/payment.py Sun Mar 24 18:00:01 2019 +0100
@@ -57,7 +57,11 @@
'account.account', "Account", ondelete='RESTRICT',
domain=[
('company', '=', Eval('company', -1)),
- ('kind', 'in', ['receivable', 'payable', 'deposit']),
+ ['OR',
+ ('type.receivable', '=', True),
+ ('type.payable', '=', True),
+ ('type.deposit', '=', True),
+ ],
['OR',
('second_currency', '=', Eval('currency', None)),
[