This question has been flagged

Description and History

After having some Internal server errors on my Odoo server (BSD Jail), I installed a fresh copy of Odoo 10.0 and connected it to my database with all file assets intact.  While this solved my Internal Server Error, it seems to have produced another error.

Traceback

Traceback (most recent call last):
  File "/usr/local/odoo/odoo/http.py", line 640, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/local/odoo/odoo/http.py", line 677, in dispatch
    result = self._call_function(**self.params)
  File "/usr/local/odoo/odoo/http.py", line 333, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/local/odoo/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/local/odoo/odoo/http.py", line 326, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/local/odoo/odoo/http.py", line 935, in __call__
    return self.method(*args, **kw)
  File "/usr/local/odoo/odoo/http.py", line 506, in response_wrap
    response = f(*args, **kw)
  File "/usr/local/odoo/addons/web/controllers/main.py", line 885, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/usr/local/odoo/addons/web/controllers/main.py", line 877, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/local/odoo/odoo/api.py", line 687, in call_kw
    return call_kw_model(method, model, args, kwargs)
  File "/usr/local/odoo/odoo/api.py", line 672, in call_kw_model
    result = method(recs, *args, **kwargs)
  File "/usr/local/odoo/odoo/models.py", line 1334, in load_views
    for [v_id, v_type] in views
  File "/usr/local/odoo/odoo/models.py", line 1334, in <dictcomp>
    for [v_id, v_type] in views
  File "/usr/local/odoo/odoo/addons/base/res/res_partner.py", line 312, in fields_view_get
    res = super(Partner, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
  File "/usr/local/odoo/addons/mail/models/mail_thread.py", line 362, in fields_view_get
    res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
  File "/usr/local/odoo/odoo/models.py", line 1413, in fields_view_get
    xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)
  File "/usr/local/odoo/odoo/addons/base/ir/ir_ui_view.py", line 910, in postprocess_and_fields
    self.raise_view_error(message, view_id)
  File "/usr/local/odoo/odoo/addons/base/ir/ir_ui_view.py", line 468, in raise_view_error
    raise ValueError(message)
ValueError: Field `customer_payment_mode_id` does not exist

Error context:
View `res.partner.form`
[view_id: 124, xml_id: base.view_partner_form, model: res.partner, parent_id: n/a]

Next Steps Taken

  1. I created a new database with demo data and installed the Contacts Directory app.  I am able to access the contacts on this database with no issues.

  2. I ran an upgrade on the Contacts Directory a duplicate of my live database which exhibits the same issue, to see if doing so might patch up what's broken.  Same traceback produced.

  3. On the duplicate of the database, I uninstalled the Contacts Directory app (also deleting all date - good thing it's just a duplicate DB), and installing the Contacts Directory anew.  Same traceback produced when attempting to view the contacts.

Avatar
Discard

Check out in which module the field customer_payment_mode_id is defined and make sure that the module has installed.