Uncaught TypeError: Cannot read property 'length' of undefined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
OpenERP version 7.0-20130206-000101
I have a search view on "ir.attachment" in which I prepared two o three filters on "create_date" field to report documents created "Today", "Yesterday" or "Last Week". This filter works well in 6.1, in 6.2 but in 7.0 raise a message :
Uncaught TypeError: Cannot read property 'length' of undefined
http://
If I try to connect to 7.0 with GTK Client (6.1 version) my filter works fine, so it could seem a web issue.
Search View is :
<record model="ir.ui.view" id="plm_
<field name="name"
<field name="model"
<field name="type"
<field name="priority" eval="1"/>
<field name="arch" type="xml">
<search string=
</field>
</record>
I'm using Google Chrome Version 24.0.1312.57 m on Windows XP
Many Thanks
Regards
Related branches
- Xavier (Open ERP) (community): Needs Fixing
- Martin Trigaux (OpenERP): Pending requested
- Nicolas Vanhoren (OpenERP): Pending requested
-
Diff: 27 lines (+10/-0)1 file modifiedaddons/web/static/src/js/pyeval.js (+10/-0)
Changed in openerp-web: | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Confirmed |
"Uncaught TypeError: Cannot read property 'length' of undefined" is a very generic error that means that the filter did not work as expected. To verify the error enter in debug mode (About OpenERP > Activate the developer mode), debugging the javascript (in my case views.js line 776) you can verify the error object.
It seems that the relativedelta implementation in pyeval.ps does not take named arguments (could be a general problem of the javascript python evaluator implementation), my error is "TypeError: function takes exactly 19 arguments".