changeset c9fff289631c in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=c9fff289631c
description:
Use name instead of rec_name for button_link action
Since issue9445, action values are explicitly defined. Default values
for
actions are now: id, name, type and icon.rec_name. That's why we should
use
name instead of rec_name.
issue9481
review310061002
diffstat:
tryton/gui/window/view_form/view/form_gtk/state_widget.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 7c6b383b5559 -r c9fff289631c
tryton/gui/window/view_form/view/form_gtk/state_widget.py
--- a/tryton/gui/window/view_form/view/form_gtk/state_widget.py Mon Jul 13
21:18:08 2020 +0200
+++ b/tryton/gui/window/view_form/view/form_gtk/state_widget.py Wed Jul 15
17:32:39 2020 +0200
@@ -162,7 +162,7 @@
action = common.RPCExecute(
'model', 'ir.action', 'get_action_value', self.action_id,
context=context)
- self.set_label(action['rec_name'])
+ self.set_label(action['name'])
decoder = PYSONDecoder(pyson_ctx)
domain = decoder.decode(action['pyson_domain'])
@@ -171,10 +171,10 @@
tab_domains = [(n, decoder.decode(d))
for n, d, c in action['domains'] if c]
if tab_domains:
- label = ('%s\n' % action['rec_name']) + '\n'.join(
+ label = ('%s\n' % action['name']) + '\n'.join(
'%s (%%d)' % n for n, _ in tab_domains)
else:
- label = '%s (%%d)' % action['rec_name']
+ label = '%s (%%d)' % action['name']
if record and self.action_id in record.links_counts:
counter = record.links_counts[self.action_id]
self._set_label_counter(label, counter)