Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][FIX] contract: Fix error when sending contract by email #1119

Merged

Conversation

carolinafernandez-tecnativa
Copy link
Contributor

  • Before this commit, when trying to send contract by email, got this error message:

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

Fix ValueError: Deprecated usage of 'default_res_id', should use 'default_res_ids'.
@pedrobaeza pedrobaeza added this to the 17.0 milestone Aug 12, 2024
@carolinafernandez-tecnativa
Copy link
Contributor Author

@pedrobaeza
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-1119-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit c7721cd into OCA:17.0 Aug 14, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 51c4f0d. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants