Context is not evaluted on one2many fields
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Web Team |
Bug Description
Hi,
I'm working on the trunk branch (updated this morning). When specifying a context on a one2many field in its "field" XML atg, it doesn't work. I join a module so you can test and reproduce the bug easily.
Example :
<!-- A many2one, it's ok -->
<field name="user_id" context=
<!-- A one2many, it's does't work -->
<field name="fake_
I got this error on GTK client :
Traceback (most recent call last):
File "/home/
temp = eval(string, context)
File "<string>", line 1, in <module>
NameError: name 'date' is not defined
And the same error with the active_id variable, whereras the first context work perfectly fine.
This is going to be a problem for the future base_temporal module : we won't be able to pass the temporal_date variable in the context based on a current form field. Moreover, not being able to use active_id in the context of a one2many field also is a problem to define default values in the one2many form view.
I hope this could be fixed before the 6.1 (7.0? ;-) !
Thanks for your time,
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
affects: | openobject-web → openerp-web |
Changed in openerp-web: | |
status: | New → Incomplete |
Changed in openerp-web: | |
status: | Incomplete → New |
It should be fixed from client