Skip to content

Commit

Permalink
[IMP] l10n_fr_department_oversea: improve variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Nov 26, 2024
1 parent 5726672 commit 0b9be26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_fr_department_oversea/post_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ def set_oversea_department_on_partner(env):
So, when it computes the field on module installation, the
departments are not available in the DB, so the country_department_id field
on res.partner stays null. This post_install script fixes this."""
fr_countries = env["res.country"].search(
fr_dom_countries = env["res.country"].search(
[("code", "in", ("FR", "GP", "MQ", "GF", "RE", "YT"))]
)
partners = (
env["res.partner"]
.with_context(active_test=False)
.search(
[
("country_id", "in", fr_countries.ids),
("country_id", "in", fr_dom_countries.ids),
("country_department_id", "=", False),
]
)
Expand Down

0 comments on commit 0b9be26

Please sign in to comment.