changeset 0b70dbf22543 in modules/account_rule:default
details: 
https://hg.tryton.org/modules/account_rule?cmd=changeset&node=0b70dbf22543
description:
        Use today when context date is empty

        issue10983
        review389951002
diffstat:

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

diffs (12 lines):

diff -r 0ce187c38c3f -r 0b70dbf22543 account.py
--- a/account.py        Thu Feb 03 23:13:26 2022 +0100
+++ b/account.py        Sat Feb 12 02:30:18 2022 +0100
@@ -105,7 +105,7 @@
             'type': context.get('account_type'),
             'return_': context.get('return_', False),
             }
-        date = context.get('date', today)
+        date = context.get('date') or today
         rules = cls.search([
                 ('company', '=', context.get('company', -1)),
                 ['OR',

Reply via email to