You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The errors occurs on compute value on account move, there is no _compute method on res.currency model
def _compute_amount_total_company_signed(self): """Compute the total amount in company currency for each record.""" for amount in self: amount.amount_total_company_signed = self.env[ 'res.currency']._compute( amount.currency_id, amount.company_id.currency_id, amount.amount_total)
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/http.py", line 1781, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/home/odoo/odoo/odoo/http.py", line 1808, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/odoo/odoo/http.py", line 2012, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/home/odoo/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/home/odoo/odoo/odoo/http.py", line 757, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/odoo/addons/web/controllers/dataset.py", line 24, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 464, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 435, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/home/odoo/odoo/addons/web/models/models.py", line 47, in web_search_read
values_records = records.web_read(specification)
File "/home/odoo/odoo/addons/web/models/models.py", line 86, in web_read
values_list: List[Dict] = self.read(fields_to_read, load=None)
File "/home/odoo/odoo/odoo/models.py", line 3556, in read
return self._read_format(fnames=fields, load=load)
File "/home/odoo/odoo/odoo/models.py", line 3769, in _read_format
vals[name] = convert(record[name], record, use_display_name)
File "/home/odoo/odoo/odoo/models.py", line 6649, in getitem
return self._fields[key].get(self, self.env.registry[self._name])
File "/home/odoo/odoo/odoo/fields.py", line 1207, in get
self.compute_value(recs)
File "/home/odoo/odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/home/odoo/odoo/addons/mail/models/mail_thread.py", line 424, in _compute_field_value
return super()._compute_field_value(field)
File "/home/odoo/odoo/odoo/models.py", line 4893, in _compute_field_value
fields.determine(field.compute, self)
File "/home/odoo/odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/home/odoo/addons/cybro/all_in_one_purchase_kit/models/account_move.py", line 41, in _compute_amount_total_company_signed
'res.currency']._compute(
AttributeError: 'res.currency' object has no attribute '_compute'
The errors occurs on compute value on account move, there is no _compute method on res.currency model
def _compute_amount_total_company_signed(self): """Compute the total amount in company currency for each record.""" for amount in self: amount.amount_total_company_signed = self.env[ 'res.currency']._compute( amount.currency_id, amount.company_id.currency_id, amount.amount_total)
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/http.py", line 1781, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/home/odoo/odoo/odoo/http.py", line 1808, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/odoo/odoo/http.py", line 2012, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/home/odoo/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/home/odoo/odoo/odoo/http.py", line 757, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/odoo/addons/web/controllers/dataset.py", line 24, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 464, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 435, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/home/odoo/odoo/addons/web/models/models.py", line 47, in web_search_read
values_records = records.web_read(specification)
File "/home/odoo/odoo/addons/web/models/models.py", line 86, in web_read
values_list: List[Dict] = self.read(fields_to_read, load=None)
File "/home/odoo/odoo/odoo/models.py", line 3556, in read
return self._read_format(fnames=fields, load=load)
File "/home/odoo/odoo/odoo/models.py", line 3769, in _read_format
vals[name] = convert(record[name], record, use_display_name)
File "/home/odoo/odoo/odoo/models.py", line 6649, in getitem
return self._fields[key].get(self, self.env.registry[self._name])
File "/home/odoo/odoo/odoo/fields.py", line 1207, in get
self.compute_value(recs)
File "/home/odoo/odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/home/odoo/odoo/addons/mail/models/mail_thread.py", line 424, in _compute_field_value
return super()._compute_field_value(field)
File "/home/odoo/odoo/odoo/models.py", line 4893, in _compute_field_value
fields.determine(field.compute, self)
File "/home/odoo/odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/home/odoo/addons/cybro/all_in_one_purchase_kit/models/account_move.py", line 41, in _compute_amount_total_company_signed
'res.currency']._compute(
AttributeError: 'res.currency' object has no attribute '_compute'
The above server error caused the following client error:
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
Error: An error occured in the owl lifecycle (see this Error's "cause" property)
at handleError (https://x/web/assets/6721275/web.assets_web.min.js:916:101)
at App.handleError (https://x/web/assets/6721275/web.assets_web.min.js:1545:29)
at ComponentNode.initiateRender (https://x/web/assets/6721275/web.assets_web.min.js:1006:19)
Caused by: RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (https://x/web/assets/6721275/web.assets_web.min.js:2888:163)
at XMLHttpRequest. (https://x/web/assets/6721275/web.assets_web.min.js:2892:13)
The text was updated successfully, but these errors were encountered: