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

        issue4990
        review68401002
diffstat:

 dunning.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 2581be15176d -r 28a9b7525b90 dunning.py
--- a/dunning.py        Fri Mar 22 15:33:42 2019 +0100
+++ b/dunning.py        Sun Mar 24 18:00:01 2019 +0100
@@ -86,7 +86,7 @@
     line = fields.Many2One('account.move.line', 'Line', required=True,
         help="The receivable line to dun for.",
         domain=[
-            ('account.kind', '=', 'receivable'),
+            ('account.type.receivable', '=', True),
             ('account.company', '=', Eval('company', -1)),
             ['OR',
                 ('debit', '>', 0),
@@ -211,7 +211,7 @@
     @classmethod
     def _overdue_line_domain(cls, date):
         return [
-            ('account.kind', '=', 'receivable'),
+            ('account.type.receivable', '=', True),
             ('dunnings', '=', None),
             ('maturity_date', '<=', date),
             ['OR',

Reply via email to