Skip to Content
Menu
This question has been flagged
1984 Views


I'm trying to port following action from odoo v11 to odoo v13. but in v13 I can not use the function context.get() there any more.

Does anyone know how to check/bypass the previous context in an action window?

res_model="helpdesk.solution.wizard"
binding_model="helpdesk.solution"
...
context="{'default_solution_ids': active_ids, 'remove_solution': True, 'default_ticket_id': context.get('default_ticket_id')}"
id="action_remove_solution_act"/>

If I try to install it, I will get a NameError.

Traceback (most recent call last):
File "/opt/odoo/lib/odoo/odoo/tools/safe_eval.py", line 352, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 1, in
NameError: name 'context' is not defined

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 15
8146
0
Dec 24
6
0
Nov 24
6
0
Nov 24
50
0
Nov 24
259