This question has been flagged
2 Replies
1927 Views

when I try to edit my company / from setting then setup your company data this error show / please advice


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 1376, in load_views
    for [v_id, v_type] in views
  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 1376, in <dictcomp>
    for [v_id, v_type] in views
  File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 1462, 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 1095, 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 548, in raise_view_error
    raise ValueError(message)
ValueError: Field `dearness_allowance` does not exist

Error context:
View `base.company.onboarding.form`
[view_id: 160, xml_id: base.base_onboarding_company_form, model: res.company, parent_id: 98]

Avatar
Discard

thanks Cybrosys Techno Solutions Pvt.Ltd , it is worked for me, you saved the day 

Best Answer

Hi,

The field named dearness_allowance is coming from the module l10n_in_hr_payroll , so just upgrade the module and see whether it gives you a solution. If that module is not necessary for you, what you can do is that you have to remove the field named dearness_allowance from the view.

This field might be added by someone manually if you feel it as an issue from the Odoo you can report it in Odoo GitHub.


To remove the field from the view, activate the developer mode and navigate to Settings -> Technical -> User Interface -> View, then in the search box, search dearness_allowance in search view architecture as shown below image,



Then you will get the view contains this field, you can open the record and manually remove this field from that view. Hope that will give you a solution.


Thanks

Avatar
Discard