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] l10n_fr_department and l10n_fr_department_oversea #399

Merged
merged 93 commits into from
Dec 30, 2022

Conversation

alexis-via
Copy link
Contributor

fix bug #384 : field department_id on res.partner has been renamed to country_department_id

@alexis-via
Copy link
Contributor Author

Requires #398

Copy link
Contributor

@legalsylvain legalsylvain 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 porting this module.

Migration script is missing.

Otherwise, LGTM.

@alexis-via
Copy link
Contributor Author

As it is a computed field, a migration script is not required, but it could save same time during migration.

@legalsylvain
Copy link
Contributor

As it is a computed field, a migration script is not required, but it could save same time during migration.

Indeed. But a little weird to raise the recompute of an existing field. And on res.partner table, it can take time. Better to use rename_fields of openupgradelib.

Comment on lines 13 to 14
# In v16, this field was renamed from department_id to country_department_id
# to avoid a field name conflict with the module partner_contact_department
# from https://github.com/OCA/partner-contact

Choose a reason for hiding this comment

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

These comments belong to the commit message or to the PR itself.

They're only useful when reviewing/analyzing changes from previous code.
But they have no use at all in the present/future code

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2013-2020 GRAP (http://www.grap.coop)
Copyright 2013-2022 GRAP (http://www.grap.coop)

Choose a reason for hiding this comment

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

FTR you could save yourself from ever having to update these Copyright lines.
When reading the copyright comment, the dates are to be read as "starting.." (and legally it'll be valid for up to 70 years from that point)

eg: Copyright 2013 GRAP (http://www.grap.coop)

Means it's copyright is valid from 2013 to 2083.
There's no need at all to put an end date, that end up being just noisy diffs, and it's totally useless.

https://stackoverflow.com/questions/2390230/do-copyright-dates-need-to-be-updated

@alexis-via alexis-via force-pushed the 16.0-mig-l10n_fr_department branch from 7d8a28e to 28b12ee Compare December 27, 2022 09:38
@alexis-via
Copy link
Contributor Author

I added and tested the migration script. Requires a recent version of openupgradelib to support the new system for translations.

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

Thanks !

legalsylvain and others added 22 commits December 30, 2022 23:03
…e information on all files. [ADD] Sql constraint on res_country_department.code field.
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
oca-transbot and others added 18 commits December 30, 2022 23:03
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-france-14.0/l10n-france-14.0-l10n_fr_department
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-14-0/l10n-france-14-0-l10n_fr_department/
Unfuck the "Donald Trump" pull request: this is the real/serious work made
by the anti-Donald Trump squad.
On install, ``_compute_department()`` method is triggered by the `post-init-hook` on every existing French partners, archived ones as well.
This commit tries to improve performances by grouping partners by zipcode (if valid) to avoid huge loading times when installing the module.
@alexis-via alexis-via force-pushed the 16.0-mig-l10n_fr_department branch from 28b12ee to d8c8637 Compare December 30, 2022 22:03
@alexis-via
Copy link
Contributor Author

/ocabot merge nobump

@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-399-by-alexis-via-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b05be29 into OCA:16.0 Dec 30, 2022
@OCA-git-bot
Copy link
Contributor

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

@legalsylvain
Copy link
Contributor

/ocabot migration l10n_fr_department

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jun 9, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Jun 9, 2023
29 tasks
@legalsylvain
Copy link
Contributor

/ocabot migration l10n_fr_department_oversea

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.