[trunk] Incorrect message when you define incorrectly a view
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP's Framework R&D |
Bug Description
When you create a view and set a model incorrectly (I mean name doesn't exist) the traceback you receive is:
2012-11-12 04:27:27,241 20775 ERROR cms openerp.
Traceback (most recent call last):
File "/home/
fvg = self.pool.
AttributeError: 'NoneType' object has no attribute 'fields_view_get'
2012-11-12 04:27:27,242 20775 ERROR cms openerp.
<record id="view_
IMHO we should receive "View X is bad defined we can't find model YYY"
I will make an MP.
Thanks.
Related branches
- OpenERP R&D Team: Pending requested
- Raphaël Valyi - http://www.akretion.com: Pending requested
- Olivier Dony (Odoo): Pending (approve) requested
-
Diff: 16 lines (+4/-2)1 file modifiedopenerp/addons/base/ir/ir_ui_view.py (+4/-2)
affects: | openobject-addons → openobject-server |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |