Skip to content

[17.0][OU-ADD] l10n_fr: Migration scripts#5533

Open
remi-filament wants to merge 1 commit intoOCA:17.0from
lefilament:17.0-add-l10n_fr
Open

[17.0][OU-ADD] l10n_fr: Migration scripts#5533
remi-filament wants to merge 1 commit intoOCA:17.0from
lefilament:17.0-add-l10n_fr

Conversation

@remi-filament
Copy link
Contributor

Migration scripts for l10n_fr
Nothing to do for other l10n_fr modules.

@remi-filament
Copy link
Contributor Author

I have a question not directly related to this PR regarding l10n_fr_hr_holidays (new module added in v17 with auto_install if you have both l10n_fr and hr_holidays installed).
There is a new parameter added in res_company and related one in res.config_settings that I would like to initialize. Since this module cannot be installed in v16, how can I make sure that my migration scripts are run during v17 migration ? Where should I define those scripts ?

I am pretty sure you have the answer @hbrunn or @MiquelRForgeFlow ?
Thanks !

@hbrunn
Copy link
Member

hbrunn commented Feb 23, 2026

I am pretty sure you have the answer @hbrunn or @MiquelRForgeFlow ? Thanks !

just write a migration script for the new module, for exactly this reason we patch Odoo to also run migration scripts for newly installed modules. If that doesn't work, that's a but in openupgrade_framework

@remi-filament
Copy link
Contributor Author

Hi @hbrunn thank you for your answer.
I just published a PR with script for l10n_fr_hr_holidays, although script is never run. We should probably continue the conversation in the other PR !
#5539

@remi-filament
Copy link
Contributor Author

Fixes #5491

Copy link
Member

@flotho flotho left a comment

Choose a reason for hiding this comment

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

successfully tested in a migration
LGTM
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants