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

Issue restoring DB with Product Variant Multi

By
VVolt
on 7/16/14, 3:27 PM 979 views

After a seemingly successful import when I go to Sales>Configuration>Products>Product Templates
I get the following error message:

View error
Can't find field 'cost_price_extra' in the following view parts composing the view of object model 'product.product':
* product.variant.tree
Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model

 

If I insist and select other options, then go back to try I get a second window with this:

OpenERP Server Error

Client Traceback (most recent call last): File "/home/openerp/odoo7/addons/web/http.py", line 204, in dispatch response["result"] = method(self, **self.params) File "/home/openerp/odoo7/addons/web/controllers/main.py", line 1051, in search_read return self.do_search_read(req, model, fields, offset, limit, domain, sort) File "/home/openerp/odoo7/addons/web/controllers/main.py", line 1074, in do_search_read req.context) File "/home/openerp/odoo7/addons/web/session.py", line 42, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/home/openerp/odoo7/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/home/openerp/odoo7/addons/web/session.py", line 103, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File "/home/openerp/odoo7/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/openerp/odoo7/openerp/netsvc.py", line 296, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/openerp/odoo7/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/home/openerp/odoo7/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/home/openerp/odoo7/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, *args, **kwargs) File "/home/openerp/odoo7/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/openerp/odoo7/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/openerp/odoo7/openerp/osv/orm.py", line 2372, in search return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count) File "/home/openerp/odoo7/openerp/osv/orm.py", line 4941, in _search query = self._where_calc(cr, user, args, context=context) File "/home/openerp/odoo7/openerp/osv/orm.py", line 4767, in _where_calc e = expression.expression(cr, user, domain, self, context) File "/home/openerp/odoo7/openerp/osv/expression.py", line 646, in __init__ self.parse(cr, uid, context=context) File "/home/openerp/odoo7/openerp/osv/expression.py", line 810, in parse raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf))) ValueError: Invalid field 'is_multi_variants' in leaf "<osv.ExtendedLeaf: ('is_multi_variants', '=', True) on product_template (ctx: )>"

Any ideas on what could I do to fix this issue?

0

Ben Bernard

--Ben Bernard--
1083
| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
Ben Bernard
On 7/17/14, 2:00 AM

Have you tried activate developer mode (click About > Activate the developer mode). In this mode you can edit your view. As a workaround you can remove (comment) cost_price_extra field in the faulty view.
I think the best solution is to know what module intoduce cost_price_extra field and then update your database (via update module in OpenERP web client, for example).

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: 7/16/14, 3:27 PM
Seen: 979 times
Last updated: 3/16/15, 8:10 AM