changeset 1737dc20b268 in modules/analytic_account:default
details: 
https://hg.tryton.org/modules/analytic_account?cmd=changeset;node=1737dc20b268
description:
        Add model, record and records attribute on Wizard

        issue9421
        review309861012
diffstat:

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

diffs (12 lines):

diff -r 5044bf5d9244 -r 1737dc20b268 line.py
--- a/line.py   Sat Jun 06 14:21:57 2020 +0200
+++ b/line.py   Tue Jul 07 23:56:09 2020 +0200
@@ -293,7 +293,7 @@
 
     def do_open_(self, action):
         action['pyson_domain'] = [
-            ('account', '=', Transaction().context['active_id']),
+            ('account', '=', self.record.id if self.record else None),
             ]
         if Transaction().context.get('start_date'):
             action['pyson_domain'].append(

Reply via email to