You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leads to psycopg2.errors.UniqueViolation errors because Odoo tries to create 2 times fiscal positions with same key (position_id, tax_src_id, tax_dest_id).
This comes from the fact that some templates are duplicated in DB. Here below is the list of duplicate ir.model.data.
In fact, these data were first defined in version 12 in OCA/l10n-spain/l10n_es_extra_data and then in version 13 in Odoo, but the XML ids are not the sames.
Here is the list of the XML ids differences (OCA version 12, Odoo version 13) :
fptt_recargo_0a, fptt_recargo_0b
fptt_extra_0a, fptt_extra_0b
fptt_extra_5a, fptt_extra_5b
fptt_recargo_buy_5a_2, fptt_recargo_buy_5b_2
fptt_intra_0a, fptt_intra_0b
fptt_recargo_buy_0a, fptt_recargo_buy_0b
fptt_recargo_0a_2, fptt_recargo_0b_2
fptt_intra_5a, fptt_intra_5b
fptt_recargo_buy_0a_2, fptt_recargo_buy_0b_2
fptt_recargo_5a, fptt_recargo_5b
fptt_recargo_buy_5a, fptt_recargo_buy_5b
fptt_recargo_5a_2, fptt_recargo_5b_2
It causes no bug up to migration to version 14 because these templates are not loaded before.
I'm not familiar with Spanish accounting but wondering why these duplicates (old OCA templates) were not removed in a 13.0 post-migration script?
To Reproduce
Affected versions: Migration from 12 to 14.
Steps to reproduce the behavior:
Take a DB in version 12 with OCA/l10n-spain/l10n_es_extra_data installed
Migrate to version 13.
Try to migrate to version 14: bug in post-migration Odoo script of version 14.0.5.1.
The text was updated successfully, but these errors were encountered:
Maybe some Spanish contributors have experienced this and could help me? @pedrobaeza or some colleagues from ForgeFlow @MiquelRForgeFlow ?
Thanks a lot!
Module
l10n_es
Describe the bug
During the migration from 13.0 to 14.0, Odoo updates the Spanish taxes in its 5.2 post-migrate script, by updating taxes from templates in
l10n_es.account_chart_template_common
. See https://github.com/odoo/odoo/blob/14.0/addons/l10n_es/migrations/5.2/post-migrate_update_taxes.pyThis leads to
psycopg2.errors.UniqueViolation
errors because Odoo tries to create 2 times fiscal positions with same key(position_id, tax_src_id, tax_dest_id)
.This comes from the fact that some templates are duplicated in DB. Here below is the list of duplicate
ir.model.data
.In fact, these data were first defined in version 12 in
OCA/l10n-spain/l10n_es_extra_data
and then in version 13 in Odoo, but the XML ids are not the sames.Here is the list of the XML ids differences (OCA version 12, Odoo version 13) :
fptt_recargo_0a, fptt_recargo_0b
fptt_extra_0a, fptt_extra_0b
fptt_extra_5a, fptt_extra_5b
fptt_recargo_buy_5a_2, fptt_recargo_buy_5b_2
fptt_intra_0a, fptt_intra_0b
fptt_recargo_buy_0a, fptt_recargo_buy_0b
fptt_recargo_0a_2, fptt_recargo_0b_2
fptt_intra_5a, fptt_intra_5b
fptt_recargo_buy_0a_2, fptt_recargo_buy_0b_2
fptt_recargo_5a, fptt_recargo_5b
fptt_recargo_buy_5a, fptt_recargo_buy_5b
fptt_recargo_5a_2, fptt_recargo_5b_2
It causes no bug up to migration to version 14 because these templates are not loaded before.
I'm not familiar with Spanish accounting but wondering why these duplicates (old OCA templates) were not removed in a 13.0 post-migration script?
To Reproduce
Affected versions: Migration from 12 to 14.
Steps to reproduce the behavior:
OCA/l10n-spain/l10n_es_extra_data
installedThe text was updated successfully, but these errors were encountered: