-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
[14.0] [FIX] l10n_it_delivery_note_base: add migration for model data #3859
[14.0] [FIX] l10n_it_delivery_note_base: add migration for model data #3859
Conversation
Hi @MarcoCalcagni, |
@odooNextev confermi che è da fare solo per la 14? |
Sì, perché rimuovere i |
This comment was marked as resolved.
This comment was marked as resolved.
è vero, ma la versione allora è 14.0.1.0.1 perché la migrazione è di l10n_it_delivery_note_base non l10n_it_delivery_note |
da26ecb
to
ebd8355
Compare
This comment was marked as resolved.
This comment was marked as resolved.
l10n_it_delivery_note_base/migrations/14.0.1.0.1/pre-migrate.py
Outdated
Show resolved
Hide resolved
l10n_it_delivery_note_base/migrations/14.0.1.0.1/pre-migrate.py
Outdated
Show resolved
Hide resolved
l10n_it_delivery_note_base/migrations/14.0.1.0.1/pre-migrate.py
Outdated
Show resolved
Hide resolved
l10n_it_delivery_note_base/migrations/14.0.1.0.1/pre-migrate.py
Outdated
Show resolved
Hide resolved
ebd8355
to
e59ead6
Compare
/ocabot rebase |
Congratulations, PR rebased to 14.0. |
e59ead6
to
84d56a5
Compare
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 2beaefd. Thanks a lot for contributing to OCA. ❤️ |
Nella versione 14.0 del modulo
l10n_it_delivery_note_base
sono stati rimossi degliir.model.data
per avere una creazione dinamica delle sequenze ed i tipi di DN per ogni azienda.#3257
Questo crea un problema durante la migrazione da 12.0 a 14.0 perchè, post aggiornamento del modulo, Odoo cerca di cancellare i riferimenti a questi record perchè non esistono più nei
data
, ma non deve farlo perchè esistono ugualmente nel DB.Per sistemare la questione propongo di cancellare in anticipo nel
pre-migrate
i riferimenti di modo che post migrazione non cerchi di rimuovere anche i record automaticamente.