-
-
Notifications
You must be signed in to change notification settings - Fork 851
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 location nuts #1398
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.
117c7d7
to
e550b4a
Compare
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.
Thanks for your PR!
Please squash administrative commits for reducing commit noise according to https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate
The rest LGTM, also tested 👍
@@ -121,7 +121,7 @@ def _mapping(self, node): | |||
else: | |||
logger.debug("xpath = '%s', not found" % field_xpath) | |||
if field_required and not value: | |||
raise UserError(_("Value not found for mandatory field %s" % k)) | |||
raise UserError(_("Value not found for mandatory field %s") % k) |
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.
Good catch!
9425f04
to
d4a8e70
Compare
@Vincenzo9191 there is still #1398 (review) to address. Could you please take a look? |
@tafaRU thank you for your review; |
@Vincenzo9191 while the last one is: In the middle the others! Please note that in case of multiple administrative commits as the following: you have to squash all the commits to only one, the real one! |
…except. (OCA#506) OCA Transbot updated translations from Transifex
OCA Transbot updated translations from Transifex [UPD] Update base_location_nuts.pot
d4a8e70
to
effcf3b
Compare
@Vincenzo9191 @FrancescoCosma there are still administrative commits need to be squashed: Could you also please squash these latter? |
/ocabot migration base_location_nuts |
[UPD] Update base_location_nuts.pot [UPD] README.rst Update translation files Updated by Update PO files to match POT (msgmerge) hook in Weblate.
[UPD] Update base_location_nuts.pot Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. 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/
[UPD] Update base_location_nuts.pot Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. 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/ [UPD] README.rst
effcf3b
to
a333a6c
Compare
Please make a fixup combining these two commits in one too. Aside from that, LGTM. |
@Vincenzo9191 @FrancescoCosma could you please address the last comment? So we can proceed with the merge. |
Currently translated at 79.5% (31 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/ Translated using Weblate (Italian) 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/
[UPD] Update base_location_nuts.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. 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/ Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. 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/
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 [UPD] Update base_location_nuts.pot
a333a6c
to
f3e75c1
Compare
@primes2h could you please update your review? |
@Vincenzo9191 @FrancescoCosma |
@Vincenzo9191 please squash last two commits to only one as the latter is not significant. Thanks! |
@FrancescoCosma could you please have a look at #1398 (comment)? |
[FIX] commit for force runboat
4060551
to
0144014
Compare
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.
Peeps, the RAMON server seems to have gone offline, and so the download cannot work anymore. It seems like this has some archived data where we might be able to find the XML, or, we have to refactor in order to use the new sparql endpoint to the data. |
The second one seems the correct way to go. |
Anybody attacking this issue already? |
Not for now |
@Vincenzo9191 could you please take care about the XML in the commenst above is the correct one 😄 ! |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Migration to version 16.0 for base_location_nuts (issue #1353 )