This question has been flagged
1 Reply
3405 Views

Current git master branch throws the error below, after openerp-server -d database -u all, how to correct this?

How can I fix the ir_ui_view element <xpath expr="//group[@name='Weights']">?

Thanks!

locadb openerp.addons.base.ir.ir_ui_view: Element '<xpath expr="//group[@name='Weights']"
>' cannot be located in parent view

Error context:
View `product.normal.procurement.locations.inherit`
[view_id: 831, xml_id: stock.view_normal_procurement_locations_form, model: product.product, parent_id: 343]
2014-06-02 10:04:45,298 8086 INFO locloco werkzeug: 127.0.0.1 - - [02/Jun/2014 10:04:45] "GET / HTTP/1.0" 303 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 26037)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/SocketServer.py", line 593, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python2.7/SocketServer.py", line 651, in __init__
    self.finish()
  File "/usr/local/lib/python2.7/SocketServer.py", line 710, in finish
    self.wfile.close()
  File "/usr/local/lib/python2.7/socket.py", line 279, in close
    self.flush()
  File "/usr/local/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------

Avatar
Discard
Author Best Answer

The solution/hack

In postgres table ir_module_module set the state to uninstalled for the concerned modules then do

openerp-server -d database -u all

After that, reinstall module, import data. This is ugly and cumbersome but works.

Avatar
Discard