changeset f726093955eb in modules/account_tax_cash:default
details: 
https://hg.tryton.org/modules/account_tax_cash?cmd=changeset;node=f726093955eb
description:
        Merge account kind and account type

        issue4990
        review68401002
diffstat:

 account.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 07368abb2cce -r f726093955eb account.py
--- a/account.py        Sat Jan 26 01:10:47 2019 +0100
+++ b/account.py        Sun Mar 24 18:00:01 2019 +0100
@@ -60,7 +60,10 @@
                         ('move.period', '=', period.id),
                         ('reconciliation', '=', None),
                         ('invoice_payment', '=', None),
-                        ('account.kind', 'in', ['receivable', 'payable']),
+                        ['OR',
+                            ('account.type.receivable', '=', True),
+                            ('account.type.payable', '=', True),
+                            ],
                         ])
                 if move_lines:
                     warning_name = (

Reply via email to