[trunk] Incorrect message when you define incorrectly a view

Bug #1077794 reported by Nhomar - Vauxoo
6
This bug affects 1 person
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.addons.base.ir.ir_ui_view: Can't render view for model: cms
Traceback (most recent call last):
  File "/home/nhomar/instancias/7.0/server/openerp/addons/base/ir/ir_ui_view.py", line 124, in _check_render_view
    fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)
AttributeError: 'NoneType' object has no attribute 'fields_view_get'
2012-11-12 04:27:27,242 20775 ERROR cms openerp.tools.convert: Parse error in /home/nhomar/Trabajo/geronimo/openerp/vauxoo_cms/vauxoo_cms_view.xml:35:
<record id="view_cms_search" model="ir.ui.view">

IMHO we should receive "View X is bad defined we can't find model YYY"

I will make an MP.

Thanks.

Related branches

Nhomar - Vauxoo (nhomar)
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.