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

[16.0] intrastat_product: add confirmed state + several small fixes/improvements #260

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

alexis-via
Copy link
Contributor

Add a third step "confirmed" between "draft" and "done". It is necessary to have error messages of XML file generation that refer to declaration lines. It was my idea to generate the declaration lines and the XML at the same time ; but real life experience showed it was not a good idea (sorry for that !). Some error messages that block XML generation could refer to computation lines but not all, because, for the fields that are summed in declaration lines, you really need to check the value in the declaration line and point to it if the value is bad.

Add a new field "line_number" on declaration line, to be used in error message when generating XML file.

Add store=True on 3 computed fields (reporting_level on declaration, src_dest_country_code and product_origin_country_code on computation lines). It fixes a bug on src_dest_country_code and product_origin_country_code on computation lines, when you could not set manually a country code while leaving the m2o field empty.

Improve display_name of intrastat.product.declaration

note field moved from fields.Text to fields.Html

Add a third step "confirmed" between "draft" and "done". It is necessary
to have error messages of XML file generation that refer to declaration
lines.

Add line_number on declaration line, to be used in error message when
generating XML file.

note field moved from fields.Text to fields.Html

Improve display_name of intrastat.product.declaration

Add store=True on 3 computed fields (reporting_level on
declaration, src_dest_country_code and product_origin_country_code on
computation lines). It fixes a bug on src_dest_country_code and
product_origin_country_code on computation lines, when you could not set
manually a country code while leaving the m2o field empty.
@alexis-via
Copy link
Contributor Author

I also added readonly access to auditor group

Copy link

@hparfr hparfr left a comment

Choose a reason for hiding this comment

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

code read
LGTM

@alexis-via
Copy link
Contributor Author

/ocabot merge major

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-260-by-alexis-via-bump-major, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e843b8b into OCA:16.0 Mar 14, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@ljsalvatierra-factorlibre

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