[6.1 rc1] PO view always give error

Bug #878756 reported by Geoff Gardiner
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
High
OpenERP R&D Addons Team 2

Bug Description

Using default data, Purchase Management > Requests for Quotation doesn't give an error but Purchase Management > Purchase Orders does.

This is using Anthony Lessuisse's installation at Grand Rosieres.

OpenERP Server Error
Client Traceback (most recent call last):
  File "/home/openerp/source/web/trunk/addons/web/common/http.py", line 154, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/openerp/source/web/trunk/addons/web/controllers/main.py", line 943, in load
    fields_view = self.fields_view_get(req, model, view_id, 'search')
  File "/home/openerp/source/web/trunk/addons/web/controllers/main.py", line 763, in fields_view_get
    fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
  File "/home/openerp/source/web/trunk/addons/web/common/openerplib/main.py", line 417, in proxy
    *args)
  File "/home/openerp/source/web/trunk/addons/web/common/openerplib/main.py", line 294, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/openerp/source/web/trunk/addons/web/common/openerplib/main.py", line 264, in send
    raise fault

Server Traceback (most recent call last):
  File "/home/openerp/source/web/trunk/addons/web/common/openerplib/main.py", line 245, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/openerp/source/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/openerp/source/server/trunk/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp/source/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp/source/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp/source/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 2090, in fields_view_get
    arch=apply_view_inheritance(cr, user, source, sql_res['id']),
  File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 2048, in apply_view_inheritance
    source = apply_inheritance_specs(source, view_arch, view_id)
  File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 2033, in apply_inheritance_specs
    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
  File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 1931, in raise_view_error
    % (child_view.xml_id, self._name, error_msg))
AttributeError: View definition error for inherited view 'purchase_requisition.purchase_order_search_inherit' on model 'purchase.order': Element '<xpath expr="/search/group/filter[@string='Not invoices']">' not found in parent view '%(parent_xml_id)s'

Tags: rc1

Related branches

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello

I have checked your issue with latest updated code but I didn't face any problem at my end with

web revision : 1313. Would you please try again with updated code and notify us where you faced the problem

with proper steps.

Thanks and waiting for your reply.

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Geoff Gardiner (geoff-gardiner) wrote : Re: [Bug 878756] Re: [6.1 rc1] PO view always give error

Thank you. Today I am in Grand Rosieres using Anthony Lesuisse's computer as
a server so I don't know what version he is running (but I think it is very
recent) and I can't use today's changes.

On 20 October 2011 13:45, Vishal Parmar(Open ERP) <<email address hidden>
> wrote:

> ...
> Would you please try again with updated code and notify us where you faced
> the problem
> ...

--
Regards, Geoff

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

This seems caused by a modification on a parent view (the issue is view inheritance breaking) in addons, I'm moving this issue in that project.

Changed in openerp-web:
status: Incomplete → Confirmed
importance: Undecided → High
affects: openerp-web → openobject-addons
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Note: the view override breaking is in purchase_requisition/purchase_requisition_view.xml, it's an override of the search view for purchase.order

Revision history for this message
qdp (OpenERP) (qdp) wrote :

it's broken since revision 5397 of addons, you need to replace the inheritance mechanism in order to use a name and not the string of the button.

thanks

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Atik Agewan(OpenERP) (aag-openerp) wrote :

Hello,

It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-878756-aag
Revision ID: <email address hidden>
Revision num: 5447.
It will be available in trunk soon,

Thanks,
Atik Agewan

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
qdp (OpenERP) (qdp) wrote :

fix landed in revision 5453 in trunk.

Thanks for the reporting, Geoff

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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