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

Debugging account views after migration

By
JZA
on 12/31/13, 7:14 AM 1,255 views

I have recently migrated from 6.1 to 7.0 but I am getting errors on my invoices, specifically views type errors. I get two annoying bugs related to invoice_line and state from costumer invoice and supplier invoice respectively.

The error dialog as I go about creating an invoice is the following:

View error

Can't find field 'state' in the following view parts composing the view of object model 'account.invoice': * account.invoice.supplier.form * account.invoice.supplier.pay * account.invoice.supplier.form.layout * invoice.supplier.cancel.form.inherit

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model

For the invoice I want to pull out from list to Form view I get the following error (particularly in costumer invoice):

OpenERP Server Error

Client Traceback (most recent call last):
  File "/home/ubuntu/openerp7/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/home/ubuntu/openerp7/openerp/addons/web/controllers/main.py", line 1128, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/home/ubuntu/openerp7/openerp/addons/web/controllers/main.py", line 1120, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/home/ubuntu/openerp7/openerp/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/ubuntu/openerp7/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/home/ubuntu/openerp7/openerp/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/ubuntu/openerp7/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/ubuntu/openerp7/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/ubuntu/openerp7/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/home/ubuntu/openerp7/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/ubuntu/openerp7/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/ubuntu/openerp7/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/ubuntu/openerp7/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr
    return fct_src(cr, uid, model, method, *args, **kw)
  File "/home/ubuntu/openerp7/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/ubuntu/openerp7/openerp/addons/account/account_invoice.py", line 363, in fields_view_get
    res = super(account_invoice,self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
  File "/home/ubuntu/openerp7/openerp/osv/orm.py", line 2250, in fields_view_get
    arch=apply_view_inheritance(cr, user, source, sql_res['id']),
  File "/home/ubuntu/openerp7/openerp/osv/orm.py", line 2208, in apply_view_inheritance
    source = apply_inheritance_specs(source, view_arch, view_id)
  File "/home/ubuntu/openerp7/openerp/osv/orm.py", line 2192, in apply_inheritance_specs
    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
  File "/home/ubuntu/openerp7/openerp/osv/orm.py", line 2085, in raise_view_error
    %  (child_view.xml_id, self._name, error_msg))
AttributeError: View definition error for inherited view 'account_invoice_layout.account_invoice_form_inherit_1' on model 'account.invoice': Element '<xpath expr="/form/notebook/page/field[@name='invoice_line']">' not found in parent view 'account.invoice_form'

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

0 follower(s)

Stats

Asked: 12/31/13, 7:14 AM
Seen: 1255 times
Last updated: 3/16/15, 8:10 AM