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 mig base location nuts #1398

Closed
wants to merge 21 commits into from

Conversation

Vincenzo9191
Copy link

Migration to version 16.0 for base_location_nuts (issue #1353 )

  • Changed library for HTTP GET from requests to urllib3;
  • Changed test class to TestBaseLocationNuts(common.TransactionCase) because SavepointCase has been merged in TransactionCase;

Antonio Espinosa and others added 6 commits November 11, 2022 09:28
[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'.
Copy link
Member

@tafaRU tafaRU left a 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)
Copy link
Member

Choose a reason for hiding this comment

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

Good catch!

base_location_nuts/wizard/nuts_import.py Show resolved Hide resolved
@Vincenzo9191 Vincenzo9191 force-pushed the 16.0-mig-base_location_nuts branch 2 times, most recently from 9425f04 to d4a8e70 Compare December 2, 2022 10:29
@tafaRU
Copy link
Member

tafaRU commented Dec 14, 2022

@Vincenzo9191 there is still #1398 (review) to address. Could you please take a look?

@Vincenzo9191
Copy link
Author

@Vincenzo9191 there is still #1398 (review) to address. Could you please take a look?

@tafaRU thank you for your review;
If may ask, can you address me the initial and last commit to squash to follow the comunity guidelines?

@tafaRU
Copy link
Member

tafaRU commented Jan 13, 2023

@Vincenzo9191
the first one is the following:

image

while the last one is:

image

In the middle the others!

Please note that in case of multiple administrative commits as the following:

image

you have to squash all the commits to only one, the real one!

NL66278 and others added 2 commits January 19, 2023 12:51
…except. (OCA#506)

OCA Transbot updated translations from Transifex
OCA Transbot updated translations from Transifex

[UPD] Update base_location_nuts.pot
@tafaRU
Copy link
Member

tafaRU commented Jan 20, 2023

@Vincenzo9191 @FrancescoCosma there are still administrative commits need to be squashed:

16-0-mig-base-location-nuts-by-Vincenzo9191-·-Pull-Request-1398-·-OCA-partner-contact

Could you also please squash these latter?

@rousseldenis
Copy link
Contributor

/ocabot migration base_location_nuts

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jan 20, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 20, 2023
59 tasks
SimoRubi and others added 3 commits January 30, 2023 09:23
[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
@primes2h
Copy link
Contributor

@Vincenzo9191 @FrancescoCosma

Please make a fixup combining these two commits in one too. Aside from that, LGTM.

immagine

@tafaRU
Copy link
Member

tafaRU commented Mar 10, 2023

@Vincenzo9191 @FrancescoCosma could you please address the last comment? So we can proceed with the merge.
Thank you in advance.

primes2h and others added 2 commits March 10, 2023 12:43
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/
astirpe and others added 7 commits March 10, 2023 12:43
[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
@tafaRU
Copy link
Member

tafaRU commented Apr 14, 2023

@primes2h could you please update your review?

@primes2h
Copy link
Contributor

@Vincenzo9191 @FrancescoCosma
Runboat is missing, please force a push to create it.

@tafaRU
Copy link
Member

tafaRU commented May 8, 2023

@Vincenzo9191 please squash last two commits to only one as the latter is not significant. Thanks!

@tafaRU
Copy link
Member

tafaRU commented May 23, 2023

@FrancescoCosma could you please have a look at #1398 (comment)?

Copy link
Contributor

@EmilioPascual EmilioPascual left a comment

Choose a reason for hiding this comment

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

Code Review OK
Funcional review: I found some problems. I can't download nuts file.
Captura desde 2023-06-22 11-19-12
Captura desde 2023-06-22 11-19-38
Captura desde 2023-06-22 11-19-49

@matteoopenf
Copy link

Code Review OK Funcional review: I found some problems. I can't download nuts file. Captura desde 2023-06-22 11-19-12 Captura desde 2023-06-22 11-19-38 Captura desde 2023-06-22 11-19-49

the same problem there is in 14.0

@thomaspaulb
Copy link

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.

@pedrobaeza
Copy link
Member

The second one seems the correct way to go.

@NICO-SOLUTIONS
Copy link
Member

The second one seems the correct way to go.

Anybody attacking this issue already?

@matteoopenf
Copy link

The second one seems the correct way to go.

Anybody attacking this issue already?

Not for now

@rafaelbn
Copy link
Member

@Vincenzo9191 could you please take care about the XML in the commenst above is the correct one 😄 !

Copy link

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.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 10, 2024
@github-actions github-actions bot closed this Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs fixing stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.