Hi all,
I noticed that on my odoo demo, with demo data, when I click on the Return button wihtin a ticket form, I get an error with a log.
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/saas-15.2/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 535, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/saas-15.2/addons/web/controllers/main.py", line 1365, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/saas-15.2/addons/web/controllers/main.py", line 1357, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/models.py", line 6417, in onchange
defaults = self.default_get(missing_names)
File "/home/odoo/src/enterprise/saas-15.2/helpdesk_account/wizard/account_move_reversal.py", line 24, in default_get
domain = self._get_default_so_domain(ticket)
File "/home/odoo/src/enterprise/saas-15.2/helpdesk_stock_account/wizard/account_move_reversal.py", line 18, in _get_default_so_domain
if ticket.sale_line_id:
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 643, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'helpdesk.ticket' object has no attribute 'sale_line_id'
Any idea what's what ?
Cheers.