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

[FW][FIX] base: traceback on rpc call if data contain default dict #131123

Closed
wants to merge 1 commit into from

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Aug 7, 2023

before this commit, on reading data with default dict data type is showing error to end user, without returning the requested data.

for eg, if a read operation is triggered on model sale.order it wont return the requested data, instead traceback is shown in response.

in sale.order model the tax_totals field is a computed field, with data as format default dict which was
causing the issue.

after this commit, without any traceback the requested data will be returned to the user.

Issue: #129183
Issue: #129494


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #129830

before this commit, on reading data with default dict data
type is showing error to end user, without returning the
requested data.

for eg, if a read operation is triggered on model sale.order
it wont return the requested data, instead traceback is
shown in response.

in sale.order model the tax_totals field is a computed
field, with data as format default dict which was
causing the issue.

after this commit, without any traceback the requested
data will be returned to the user.

X-original-commit: cc61b92
@robodoo
Copy link
Contributor

robodoo commented Aug 7, 2023

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Aug 7, 2023
@C3POdoo C3POdoo added the RD research & development, internal work label Aug 7, 2023
@Julien00859
Copy link
Member

@fw-bot r+

robodoo pushed a commit that referenced this pull request Aug 8, 2023
before this commit, on reading data with default dict data
type is showing error to end user, without returning the
requested data.

for eg, if a read operation is triggered on model sale.order
it wont return the requested data, instead traceback is
shown in response.

in sale.order model the tax_totals field is a computed
field, with data as format default dict which was
causing the issue.

after this commit, without any traceback the requested
data will be returned to the user.

closes #131123

X-original-commit: cc61b92
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
robodoo pushed a commit that referenced this pull request Aug 8, 2023
before this commit, on reading data with default dict data
type is showing error to end user, without returning the
requested data.

for eg, if a read operation is triggered on model sale.order
it wont return the requested data, instead traceback is
shown in response.

in sale.order model the tax_totals field is a computed
field, with data as format default dict which was
causing the issue.

after this commit, without any traceback the requested
data will be returned to the user.

closes #131123

X-original-commit: cc61b92
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
@robodoo robodoo temporarily deployed to merge August 8, 2023 19:09 Inactive
@robodoo robodoo closed this Aug 8, 2023
@robodoo robodoo added the 16.5 label Aug 8, 2023
@fw-bot fw-bot deleted the master-fix_default_dict-KMO_-fw branch August 22, 2023 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
16.5 forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants