openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27470
[Bug 1294360] Re: V8 nightly update all, cannot locate <page string="History" version="7.0">
Are you trying to upgrade a database from v7 to v8 within the ? This is
not supported. You need to use the migration service from OpenERP
(tried, tested, guaranteed), or the community option at
https://launchpad.net/openupgrade-server (not tried by myself)
** Changed in: openobject-addons
Status: New => Invalid
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1294360
Title:
V8 nightly update all, cannot locate <page string="History"
version="7.0">
Status in OpenERP Addons (modules):
Invalid
Bug description:
lauching the openerp-server with -u all to update a v7 to a v8 gives
the following error for module account :
raceback (most recent call last):
File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi
execute(app)
File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute
application_iter = app(environ, start_response)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/service/server.py", line 261, in app
return self.app(e, s)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/service/wsgi_server.py", line 362, in application
return application_unproxied(environ, start_response)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/service/wsgi_server.py", line 348, in application_unproxied
result = handler(environ, start_response)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/http.py", line 1018, in __call__
return self.dispatch(environ, start_response)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/http.py", line 997, in __call__
return self.app(environ, start_wrapped)
File "/usr/share/pyshared/werkzeug/wsgi.py", line 411, in __call__
return self.app(environ, start_response)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/http.py", line 997, in __call__
return self.app(environ, start_wrapped)
File "/usr/share/pyshared/werkzeug/wsgi.py", line 411, in __call__
return self.app(environ, start_response)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/http.py", line 997, in __call__
return self.app(environ, start_wrapped)
File "/usr/share/pyshared/werkzeug/wsgi.py", line 411, in __call__
return self.app(environ, start_response)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/http.py", line 1142, in dispatch
ir_http = request.registry['ir.http']
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/http.py", line 151, in registry
return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/modules/registry.py", line 232, in get
update_module)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/modules/registry.py", line 262, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/modules/loading.py", line 334, in load_modules
force, status, report, loaded_modules, update_module)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/modules/loading.py", line 242, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/modules/loading.py", line 175, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/modules/loading.py", line 116, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/tools/convert.py", line 967, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/tools/convert.py", line 1053, in convert_xml_import
obj.parse(doc.getroot())
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/tools/convert.py", line 921, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/tools/convert.py", line 850, in _tag_record
id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/addons/base/ir/ir_model.py", line 1010, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/addons/base/ir/ir_ui_view.py", line 177, in create
return super(view, self).create(cr, uid, values, context)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/osv/orm.py", line 4190, in create
self._validate(cr, user, [id_new], context)
File "/home/openerp/openerp-8.0dev-20140318-000101/openerp/osv/orm.py", line 1571, in _validate
raise except_orm('ValidateError', '\n'.join(error_msgs))
ParseError: "ValidateError
The field(s) `arch` failed against a constraint: Invalid view definition
Error details:
Element '<page string="History" version="7.0">' cannot be located in parent view
Error context:
View `res.partner.property.form.inherit`
[view_id: 506, xml_id: account.view_partner_property_form, model: res.partner, parent_id: 129]" while parsing /home/openerp/openerp-8.0dev-20140318-000101/openerp/addons/account/partner_view.xml:60, near
<record model="ir.ui.view" id="partner_view_buttons">
<field name="name">partner.view.buttons</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='buttons']" position="inside">
<button type="action" string="Invoices" name="%(account.action_invoice_tree)d" context="{'search_default_partner_id': active_id,'default_partner_id': active_id}" groups="account.group_account_invoice"/>
<button type="action" string="Journal Items" name="%(account.action_account_moves_all_tree)d" groups="account.group_account_user"/>
<button type="action" string="Contracts" name="%(account.action_open_partner_analytic_accounts)d" groups="analytic.group_analytic_accounting"/>
</xpath>
</field>
</record>
Note that i have tried some tricks, the view with id 506 in the DB ir_ui_view table contains :
<?xml version="1.0"?>
<page string="History" position="before" version="7.0">
<page string="Accounting" col="4" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}">
<group>
So I tried to remove the 'position="before"', but with no luck, the update process is not loocking in the DB as I can conclude.
I do not understand where this position="before" comes from, and I guess it should not be present in a view data.
The problem is that it looks for <page string="History" version="7.0"> and probably has in reality
<page string="History" position="before" version="7.0">
Any suggestion?
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1294360/+subscriptions
References