Skip to Content
Menu
This question has been flagged
1 Reply
4233 Views

Odoo Server Error
Traceback (most recent call last):
  File "/odoo14/odoo14-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/odoo14/odoo14-server/odoo/http.py", line 684, in dispatch
    result = self._call_function(**self.params)
  File "/odoo14/odoo14-server/odoo/http.py", line 360, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo14/odoo14-server/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo14/odoo14-server/odoo/http.py", line 348, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo14/odoo14-server/odoo/http.py", line 913, in __call__
    return self.method(*args, **kw)
  File "/odoo14/odoo14-server/odoo/http.py", line 532, in response_wrap
    response = f(*args, **kw)
  File "/odoo14/odoo14-server/addons/web/controllers/main.py", line 1389, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/odoo14/odoo14-server/addons/web/controllers/main.py", line 1381, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo14/odoo14-server/odoo/api.py", line 396, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/odoo14/odoo14-server/odoo/api.py", line 383, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/odoo14/odoo14-server/odoo/models.py", line 3011, in read
    raise ValueError("Invalid field %r on model %r" % (name, self._name))
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/odoo14/odoo14-server/odoo/http.py", line 640, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo14/odoo14-server/odoo/http.py", line 316, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'effective_date' on model 'account.payment'

Avatar
Discard

Would you please add more details of how did you get this error, did you use any custom module or did any customization, or manually changed anything?

I couldn't say this will be the solution. Try giving effective_date=fields.Date() by inheriting account.payment in python file of your custom module. No need to set XML view. If it still shows error, then add XML view and set the field to be invisible.

Author

The issue  comes when I want to record payments in the accounting.I did not use any custom modules or made any kind of customization . I'm using multi company config with each with it chart of account that's all

Please use a meaningful title refering to your error message.

Author

Hi everyone
Please I need your help. In fact the problem is that when I validate a sale it creates at the same time the invoice until then everything is fine even when I register a payment it works perfectly but the worry comes when a customer comes to deposit a payment and I have to register this payment that's when the error occurs. I don't know much about odoo development help me to solve this problem because I have a very big presentation to do for a company about odoo

Author

Hi everyone

Please I need your help. In fact the problem is that when I validate a sale it creates at the same time the invoice until then everything is fine even when I register a payment it works perfectly but the worry comes when a customer comes to deposit a payment and I have to register this payment that's when the error occurs. I don't know much about odoo development help me to solve this problem because I have a very big presentation to do for a company about odoo


I am also experiencing this same error when creating an internal transfer

Author

I was able to solve the problem. The problem was related to the fact that I uninstalled an odoo module that left bugs in my database and for this reason I just reinstalled it and everything is fine

Which module was it specifically for you?

I resolved this just by upgrading the base Invoicing module. So i'm assuming this is caused by a change by custom modules and does not revert when they are removed. So upgrading the Invoicing module seems to overwrite those changes again and revert back to the base

Author Best Answer


I was able to solve the problem. The problem was related to the fact that I uninstalled an odoo module that left bugs in my database and for this reason I just reinstalled it and everything is fine

Avatar
Discard