changeset 2aacacb4efdb in modules/account_rule:6.2
details:
https://hg.tryton.org/modules/account_rule?cmd=changeset&node=2aacacb4efdb
description:
Use today when context date is empty
issue10983
review389951002
(grafted from 0b70dbf225437e75c15a1b937120beeb399ce1c3)
diffstat:
account.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1f4deeb8691a -r 2aacacb4efdb account.py
--- a/account.py Mon Nov 01 17:35:49 2021 +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',