Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Error in View 'stock.picking.form' OpenUpgrade 7.0 to 8.0

By
Dago Gallo
on 2/5/15, 12:46 PM 1,081 views

Hi everyone, I'm trying to migrate my database from 7.0 to 8.0 but I have an error with module stock, I reviewed the tables and it seems that the data has been migrated well but always got the following error:

Error context:
View `stock.picking.form`
[view_id: 679, xml_id: stock.view_picking_form, model: stock.picking, parent_id: n/a]
2015-02-05 16:45:00,097 15501 CRITICAL fruti78 openerp.service.server: Failed to initialize database `fruti78`.
Traceback (most recent call last):
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/service/server.py", line 901, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/modules/registry.py", line 324, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/modules/loading.py", line 490, in load_modules
    if not Views._validate_custom_views(cr, SUPERUSER_ID, model):
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/addons/base/ir/ir_ui_view.py", line 1116, in _validate_custom_views
    return self._check_xml(cr, uid, ids)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/addons/base/ir/ir_ui_view.py", line 206, in _check_xml
    view_def = self.read_combined(cr, uid, view.id, None, context=context)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/addons/base/ir/ir_ui_view.py", line 563, in read_combined
    cr, uid, arch_tree, view_arch, parent_view['id'], context=context)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/addons/base/ir/ir_ui_view.py", line 505, in apply_inheritance_specs
    self.raise_view_error(cr, uid, _("Element '%s' cannot be located in parent view") % tag, inherit_id, context=context)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/dago-gallo/Development/odoo/8.0/OpenUpgrade/openerp/addons/base/ir/ir_ui_view.py", line 390, in raise_view_error
    raise AttributeError(message)
AttributeError: Element '<xpath expr="/form/header//button[@name='draft_force_assign']">' cannot be located in parent view

View image here: https://drive.google.com/a/clearcorp.co.cr/file/d/0B8NblWSNGrfKV2xaR3k1MkQ1Qkk/view

Hope somebody can helpme, thanks.

 

0

Emipro Technologies Pvt. Ltd.

--Emipro Technologies Pvt. Ltd.--
Tiny ERP Pvt Ltd
http://www.odoo.com
5975
| 6 7 8
Rajkot, India
--Emipro Technologies Pvt. Ltd.--

Being an emerging leader in IT market since 2011, Emipro Technologies Pvt. Ltd. has been providing a wide range of business solutions in Odoo & Magento. We are pleased to have a large pool of contented customers with our meticulous work in the domain of ERP & e-Commerce. A ray of relief & satisfaction to  our customers heart by our successful deployment in their organization, purely represents our success in Odoo platform. Hence, we take pride for being an Odoo partner with a vision of expanding our strategic alliances with our customers to offer them high value-added, trustworthy & cost effective solutions.

 

Since establishment, our business has span across 11 countries of the world. Our customers are companies of all sizes ranging from start-ups to large enterprises, who realize that they need a professional business solutions to generate revenue streams, establish proper communication channels or streamline business operations. Standing with strong determination of customer satisfaction, observing each minute detail of their business processes, providing proper guidance and moving forth to develop product accordingly adds our value and reliability among our customers. 

 

We are blessed with efficient, passionate & eclectic young developers who have come across almost all kinds of business profiles, working with full dedication, applying creativity & new features in existing modules and completing customer's projects successfully on predefined target. Our in-depth knowledge while giving business solutions in Odoo allows us to offer following services to our customers :

 

  • Consulting
  • Installation, Configuration & Customization
  • Training & Support
  • Maintenance
  • Upgradation
  • Documentation
  • Crafting community modules
  • Drafting videos on demand
  • Smart Apps development

We will be :) to welcome you @ www.emiprotechnologies.com to solve any kind of your business needs around Odoo. However we are just an inch away from you by email info@emiprotechnologies.com or a tweet to @EmiproTech

Emipro Technologies Pvt. Ltd.
On 2/5/15, 1:01 PM

There is no button named "draft_force_assign", it is only as "force_assign", so your xpath expression would be like as follows :

<xpath expr="/form/header/button[@name='force_assign'] position="<<as per your need>>">

    <<element as per your need>

</xpath>

Hope this helps !!!.

0
Dago Gallo
On 2/6/15, 12:31 PM

I resolved the problem updating it several times, remove .pyc stock for pre-migration and post-migration

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/5/15, 12:46 PM
Seen: 1081 times
Last updated: 3/16/15, 8:10 AM