changeset b5a32fb596ff in tryton:default details: https://hg.tryton.org/tryton?cmd=changeset;node=b5a32fb596ff description: Clean active_* keys from context when executing an action
As the values may be already present on the context they should be cleared in order to correctly evaluate action domains issue7839 review68381002 diffstat: tryton/action/main.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diffs (23 lines): diff -r c1d314266d5f -r b5a32fb596ff tryton/action/main.py --- a/tryton/action/main.py Wed Feb 20 12:14:12 2019 +0100 +++ b/tryton/action/main.py Fri Feb 22 19:35:46 2019 +0100 @@ -72,6 +72,8 @@ from tryton.gui.window import Window if context is None: context = {} + else: + context = context.copy() if data is None: data = {} else: @@ -79,6 +81,10 @@ if 'type' not in (action or {}): return + context.pop('active_id', None) + context.pop('active_ids', None) + context.pop('active_model', None) + def add_name_suffix(name, context=None): if not data.get('ids') or not data.get('model'): return name