Skip to Content
Menu
This question has been flagged
2 Replies
1529 Views

Error:

Odoo Server Error


Traceback (most recent call last):

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 654, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 312, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise

    raise value

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 696, in dispatch

    result = self._call_function(**self.params)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 344, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper

    return f(dbname, *args, **kwargs)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 337, in checked_call

    result = self.endpoint(*a, **kw)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 939, in __call__

    return self.method(*args, **kw)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 517, in response_wrap

    response = f(*args, **kw)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 962, in call_kw

    return self._call_kw(model, method, args, kwargs)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 745, in call_kw

    return _call_kw_model(method, model, args, kwargs)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 718, in _call_kw_model

    result = method(recs, *args, **kwargs)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 1369, in load_views

    for [v_id, v_type] in views

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 1369, in <dictcomp>

    for [v_id, v_type] in views

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\account\models\account_invoice.py", line 582, in fields_view_get

    return super(AccountInvoice, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\mail\models\mail_thread.py", line 408, in fields_view_get

    res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 1455, in fields_view_get

    xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\base\models\ir_ui_view.py", line 1092, in postprocess_and_fields

    self.raise_view_error(message, view_id)

  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\base\models\ir_ui_view.py", line 545, in raise_view_error

    raise ValueError(message)

ValueError: Field `check_total` does not exist


Error context:

View `account.invoice.supplier.form`

[view_id: 757, xml_id: account.invoice_supplier_form, model: account.invoice, parent_id: n/a]

Avatar
Discard
Best Answer

Make sure that 

class AccountInvoice(models.Model):

_inherit = 'account.invoice'

#check_total =   <--This is defined

Avatar
Discard
Best Answer

It seems there is a field in view 'check_total' which is not present/declared in model. will have to debug in code

Avatar
Discard