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

        issue9660
        review314371002
diffstat:

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

diffs (12 lines):

diff -r e94197bb9507 -r 58c80b966fe8 move.py
--- a/move.py   Sat Oct 03 12:26:12 2020 +0100
+++ b/move.py   Sun Oct 04 16:28:48 2020 +0200
@@ -1441,6 +1441,8 @@
         if Transaction().context.get('date'):
             action['pyson_domain'].append(('move.date', '<=',
                     Transaction().context['date']))
+        if self.record:
+            action['name'] += ' (%s)' % self.record.rec_name
         action['pyson_domain'] = PYSONEncoder().encode(action['pyson_domain'])
         action['pyson_context'] = PYSONEncoder().encode({
             'fiscalyear': Transaction().context.get('fiscalyear'),

Reply via email to