[17.0][FIX] contract: Fix error when sending contract by email #1119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 1764, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 1791, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 1995, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 741, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo/auto/addons/web/controllers/dataset.py", line 24, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/auto/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 453, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/auto/addons/web/models/models.py", line 937, in onchange
defaults = self.default_get(missing_names)
File "/opt/odoo/auto/addons/mail/wizard/mail_compose_message.py", line 64, in default_get
raise ValueError(("Deprecated usage of 'default_res_id', should use 'default_res_ids'."))
ValueError: Deprecated usage of 'default_res_id', should use 'default_res_ids'.
The above server error caused the following client error:
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
OwlError@http://localhost:17069/web/assets/36cdbb1/web.assets_web.min.js:684:1
handleError@http://localhost:17069/web/assets/36cdbb1/web.assets_web.min.js:916:101
handleError@http://localhost:17069/web/assets/36cdbb1/web.assets_web.min.js:1545:29
initiateRender@http://localhost:17069/web/assets/36cdbb1/web.assets_web.min.js:1006:19
Caused by: RPC_ERROR: Odoo Server Error
RPCError@http://localhost:17069/web/assets/36cdbb1/web.assets_web.min.js:2883:319
makeErrorFromResponse@http://localhost:17069/web/assets/36cdbb1/web.assets_web.min.js:2886:163
jsonrpc/promise</<@http://localhost:17069/web/assets/36cdbb1/web.assets_web.min.js:2890:34
@Tecnativa
TT50508
@pedrobaeza @juanjosesegui-tecnativa