improve error messages during XML view processing

Bug #623845 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
OpenERP's Framework R&D

Bug Description

for debugging it would be helpfull to know names of
module, view, parent view

Environment Information :
System : Linux-2.6.34-12-desktop-x86_64-with-SuSE-11.3-x86_64
OS Name : posix
LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: SUSE LINUX
Description: openSUSE 11.3 (x86_64)
Release: 11.3
Codename: n/a
Operating System Release : 2.6.34-12-desktop
Operating System Version : #1 SMP PREEMPT 2010-06-29 02:39:08 +0200
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0dev
Last revision No. & ID :1504 codehost@crowberry-20100822034827-lrh0d7zya8vg1ov6
Traceback (most recent call last):
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/netsvc.py", line 431, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/service/web_services.py", line 589, in dispatch
    res = fn(db, uid, *params)
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/addons/audittrail/audittrail.py", line 503, in execute
    res = my_fct(db, uid, model, method, *args)
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/addons/audittrail/audittrail.py", line 488, in my_fct
    return fct_src(db, uid, model, method, *args)
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/osv/osv.py", line 135, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/osv/osv.py", line 125, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/osv/orm.py", line 1674, in fields_view_get
    result['arch'] = _inherit_apply_rec(inherit_result, sql_res[3])
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/osv/orm.py", line 1669, in _inherit_apply_rec
    result = _inherit_apply(result, inherit)
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/osv/orm.py", line 1613, in _inherit_apply
    raise AttributeError(_("Couldn't find tag '%s' in parent view !") % tag)
AttributeError: Couldn't find tag '<field colspan="4" context="address=address" name="bank_ids" nolabel="1" select="2">' in parent view !

Related branches

Nhomar - Vauxoo (nhomar)
Changed in openobject-server:
status: New → Confirmed
importance: Undecided → Medium
Changed in openobject-server:
importance: Medium → Wishlist
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Wishlist → Low
summary: - need better debug text
+ improve error messages during XML view processing
Changed in openobject-server:
milestone: none → 6.0-rc2
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Yogesh (SerpentCS) (yogesh-serpentcs) wrote :

Hello Ferdinand @ Camptocamp ,

  Would you please check the attached patch and notify us?

Thanks.

Revision history for this message
Ferdinand (office-chricar) wrote :

looks good, didn't test

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

This was fixed in revision 3089 <email address hidden>
Thanks to YSA for the proposed patch, and thanks Ferdinand for reporting!

Changed in openobject-server:
status: In Progress → Fix Released
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.