changeset b273c2533e0d in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset;node=b273c2533e0d
description:
Get account from pool in CreateChart default_properties
issue9657
review306531002
diffstat:
account.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r e9c8d0180829 -r b273c2533e0d account.py
--- a/account.py Fri Sep 18 00:06:31 2020 +0200
+++ b/account.py Sat Oct 03 12:24:19 2020 +0100
@@ -2611,6 +2611,9 @@
return 'properties'
def default_properties(self, fields):
+ pool = Pool()
+ Account = pool.get('account.account')
+
defaults = {
'company': self.account.company.id,
}