different context passed from xml with web client compared to gtk client
Hi all,
Is there a different way of passing context from XML when using a GTK client and web-client?
I have this XML code
<button icon="gtk-ok" context=
this is working perfectly by passing this context to python file,
context output: (GTK client)
{'lang': u'en_US', 'tz': False, 'product_id': 3, 'section_id': False, 'project_id': False, 'location_id': 22, 'department_id': False}
the problem is when I run the same thing with web client, it gives a different context output
(Web client)
{'lang': u'en_US', 'project_id': False, 'tz': False, 'active_model': 'ir.ui.menu', 'department_id': False, 'section_id': False, 'client': 'web', 'active_ids': [2, 5], 'active_id': 5}
why is this happening? the context that I passed from XML is not passed to py file when Im using web client.
Am I missing something or is this a bug?
Regards,
joel
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Joel Cabral for more information if necessary.