[19.0][MIG] base_location_nuts: Migration to 19.0#2285
Open
[19.0][MIG] base_location_nuts: Migration to 19.0#2285
Conversation
[MIG] Rename manifest files
This makes NUTS labels and levels to be stored in the res.country object. Now creating l10n submodules is a piece of cake! Relational fields now follow guidelines on naming. Old name attribute used for backwards compatibility wherever needed. Also some methods have been renamed, and refactored to be smarter. Most cases l10n modules will just need to fill the res.contry table, and regions and substates domains will work out of the box. In case you still need to overwrite any method, splitting in smaller methods makes it easier too. Oh! And no need for recursive dictionary updates. Return dict() to make it easier for submodules to add domains. Fix KeyError: 'substate_id_level'.
Fix linter. Fix typo.
Currently translated at 82.1% (32 of 39 strings) Translation: partner-contact-12.0/partner-contact-12.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-base_location_nuts/it/
Currently translated at 100.0% (39 of 39 strings) Translation: partner-contact-13.0/partner-contact-13.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-base_location_nuts/es_AR/
…rn domain in onchange
Currently translated at 69.2% (27 of 39 strings) Translation: partner-contact-15.0/partner-contact-15.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-15-0/partner-contact-15-0-base_location_nuts/sl/
…nes to fail Issue details: OCA#1557
Currently translated at 43.5% (17 of 39 strings) Translation: partner-contact-15.0/partner-contact-15.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-15-0/partner-contact-15-0-base_location_nuts/pt_BR/
Currently translated at 100.0% (39 of 39 strings) Translation: partner-contact-15.0/partner-contact-15.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-15-0/partner-contact-15-0-base_location_nuts/es/
Currently translated at 100.0% (41 of 41 strings) Translation: partner-contact-15.0/partner-contact-15.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-15-0/partner-contact-15-0-base_location_nuts/es/
Currently translated at 100.0% (41 of 41 strings) Translation: partner-contact-16.0/partner-contact-16.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-base_location_nuts/it/
Currently translated at 100.0% (37 of 37 strings) Translation: partner-contact-17.0/partner-contact-17.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-base_location_nuts/it/
…on of Nuts Only users with administrator rights should be able to create and edit Nuts. Users without administrator permissions should only have read access to Nuts.
With `base_vat` module installed, the fields appear disorganized and also shift the VAT field.
Currently translated at 100.0% (37 of 37 strings) Translation: partner-contact-18.0/partner-contact-18.0-base_location_nuts Translate-URL: https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-base_location_nuts/it/
3a9f48d to
85de3bb
Compare
85de3bb to
e882ace
Compare
Contributor
Author
luisDIXMIT
approved these changes
Feb 9, 2026
luisDIXMIT
left a comment
There was a problem hiding this comment.
Code review and tested on runboat, LGTM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


#2146