← Back to team overview

openerp-india team mailing list archive

[Bug 1077794] Re: [trunk] Incorrect message when you define incorrectly a view

 

** Branch linked: lp:~vauxoo/openobject-server/trunk-lp1077794

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1077794

Title:
  [trunk] Incorrect message when you define incorrectly a view

Status in OpenERP Server:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1077794/+subscriptions


References