changeset 73311bbc896e in modules/analytic_account:default
details: 
https://hg.tryton.org/modules/analytic_account?cmd=changeset;node=73311bbc896e
description:
        Add analytic account name to open move line action name

        issue9680
        review312461002
diffstat:

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

diffs (12 lines):

diff -r 8e183287aa93 -r 73311bbc896e line.py
--- a/line.py   Sat Jul 25 12:31:10 2020 +0200
+++ b/line.py   Thu Oct 08 12:22:06 2020 +0200
@@ -309,6 +309,8 @@
             action['pyson_domain'].append(
                 ('date', '<=', Transaction().context['end_date'])
                 )
+        if self.record:
+            action['name'] += ' (%s)' % self.record.rec_name
         action['pyson_domain'] = PYSONEncoder().encode(action['pyson_domain'])
         return action, {}
 

Reply via email to