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

[15.0][FIX] base_import_pdf_by_template: Improve the import process to account for fixed values #1033

Merged

Conversation

victoralmau
Copy link
Member

@victoralmau victoralmau commented Sep 2, 2024

Improve the import process to account for fixed values

When fixed values are defined, default_x was used in the context of Form() but in some cases this was not respected (for example if the value was changed in an onchange, warehouse_id field of sale orders).
We changed the way of creating the records to always take into account the fixed values.

Please @pedrobaeza and @pilarvargas-tecnativa can you review it?

@Tecnativa TT50650

@victoralmau victoralmau force-pushed the 15.0-fix-base_import_pdf_by_template-TT50650 branch from 6222978 to b2c1fab Compare September 2, 2024 08:29
@victoralmau victoralmau changed the title [15.l0][FIX] base_import_pdf_by_template: Improve the import process to account for fixed values [15.0][FIX] base_import_pdf_by_template: Improve the import process to account for fixed values Sep 2, 2024
@victoralmau victoralmau marked this pull request as ready for review September 3, 2024 13:57
Copy link

@pilarvargas-tecnativa pilarvargas-tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pedrobaeza pedrobaeza added this to the 15.0 milestone Sep 7, 2024
…unt for fixed values

When fixed values are defined, default_x was used in the context of Form() but in some
cases this was not respected (for example if the value was changed in an onchange, warehouse_id
field of sale orders).
We changed the way of creating the records to always take into account the fixed values.

TT50650
@victoralmau victoralmau force-pushed the 15.0-fix-base_import_pdf_by_template-TT50650 branch from b2c1fab to 10e5c1b Compare September 9, 2024 06:19
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-1033-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

1 similar comment
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit f01bc32 into OCA:15.0 Sep 9, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 15.0-fix-base_import_pdf_by_template-TT50650 branch September 9, 2024 06:40
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