-
-
Notifications
You must be signed in to change notification settings - Fork 766
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][MIG] base vat optional vies: Migration to 16.0 #1572
[16.0][MIG] base vat optional vies: Migration to 16.0 #1572
Conversation
12a9fd8
to
5dec75f
Compare
/ocabot migration base_vat_optional_vies |
Hello @RodrigoBM , thank you!! 😄 As a know issue in this module and commented recently by @alexis-via in Twitter https://twitter.com/alexisdlattre/status/1618377832090185730 we should improve of FIX this module in this points: Premise: as de VAT number in the parent (commercial partner) is the same and should be the same for all chilldren , this field So my proposal is simple:
This changes could be don't know if easy or later in a separate PR. I'm not blocking at all this great migration. @moduon MT-2178 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improvement that can be done in a separate PR, but not blocking migration
for partner in self: | ||
partner = partner.with_context(vat_partner=partner) | ||
super(ResPartner, partner).check_vat() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe can be improved to propagate vies_passed field to the children contacts:
for partner in self: | |
partner = partner.with_context(vat_partner=partner) | |
super(ResPartner, partner).check_vat() | |
for partner in self.sorted(lambda p: bool(p.commercial_partner_id)): | |
partner = partner.with_context(vat_partner=partner) | |
if partner.commercial_partner_id: | |
partner.update({"vies_passed": partner.commercial_partner_id.vies_passed}) | |
else: | |
super(ResPartner, partner).check_vat() |
with this commit in base_vat odoo/odoo@eff3b14 this mig now fails. I am reviewing it |
215d21e
to
359a065
Compare
eb3dd33
to
40f5fe4
Compare
* Disable VIES test * Fixes to avoid exception when using default _construct_constraint_msg method
* base_vat_optional_vies: Fix pass lower country code in _split_vat function to find parent function check_vat_'xx' instead of check_vat_'XX' * base_vat_optional_vies: Convert to upper when write NIF into database
Currently translated at 100.0% (2 of 2 strings) Translation: account-financial-tools-10.0/account-financial-tools-10.0-base_vat_optional_vies Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-10-0/account-financial-tools-10-0-base_vat_optional_vies/de/
Currently translated at 100.0% (2 of 2 strings) Translation: account-financial-tools-12.0/account-financial-tools-12.0-base_vat_optional_vies Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-base_vat_optional_vies/es/
Currently translated at 100.0% (2 of 2 strings) Translation: account-financial-tools-12.0/account-financial-tools-12.0-base_vat_optional_vies Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-base_vat_optional_vies/hr/
Currently translated at 100.0% (2 of 2 strings) Translation: account-financial-tools-12.0/account-financial-tools-12.0-base_vat_optional_vies Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-base_vat_optional_vies/pt/
- Simple VAT error message when an error must be shown - Always clean vies_passed field when check_vat is called [FIX] tests [FIX] Contributor emails
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-financial-tools-15.0/account-financial-tools-15.0-base_vat_optional_vies Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-15-0/account-financial-tools-15-0-base_vat_optional_vies/
…vat_shows_simple_message
Currently translated at 100.0% (3 of 3 strings) Translation: account-financial-tools-15.0/account-financial-tools-15.0-base_vat_optional_vies Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-15-0/account-financial-tools-15-0-base_vat_optional_vies/pt/
40f5fe4
to
604871b
Compare
Does this module now makes sense as Odoo already made the VIES check optional? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thank you @RodrigoBM
Initial validation of existing partners would be critical. |
It is a very user-friendly validation system without the need for external tools. It also allows to trace, review and identify validation errors for non-technical users. For me it is useful as a functional user. |
This PR has the |
Fran, but have you seen now how it's done on core? They have put a visible warning. |
It is probably my ignorance but it would only be a warning at the time of creation. If I have a team member who wants to verify if that company has passed validation haven't the same information visually. If this new validation would leave log. The financial and administrative departments ❤️. |
OK, I agree it can be useful to check it later, not only on VAT number onchange. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested 👍 still needed Odoo core check it but don't allow to safe a VAT number si VIES is not valid. So the need is the same from v8 😄
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 9211879. Thanks a lot for contributing to OCA. ❤️ |
#1472