Windows client : context passed on a button in a view does not get passed to the resulting action/view called
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
I have a button like this :
<button name="%
The action it is calling :
<record id="action_
<field name="name">Enter work for project</field>
<field name="type"
<field name="res_
<field name="view_id" ref="project_
<field name="view_
<field name="view_
</record>
On the model project.task.work I have written a custom function which reads in context, and if 'project_id' is in the context it alters the view slightly (applying a domain on a field)
The problem is in linux and the webclient this action works as the context is indeed correctly passed, in the windows client it throws this error when calling the action :
Traceback (most recent call last):
File "widget\
File "modules\
File "modules\
File "tools\
File "<string>", line 1, in <module>
NameError: name 'project_id' is not defined
description: | updated |
Changed in openobject-client: | |
milestone: | none → 5.0.7 |
status: | Fix Committed → Fix Released |
I pushed the module where I have this problem to lp:~openerp-community/openobject-addons/trunk-addons-community/
rev 130 ( <email address hidden> )
subdir project_work_entry
There might still be small issues with this module as it was developed to co-exist with other modules.