Skip to content
Snippets Groups Projects
Commit e2f9c21f authored by Claire Bretton (clbr)'s avatar Claire Bretton (clbr)
Browse files

[FIX] account: manage unique constraint violation in taxes update


Some databases encounter an error when they try to upgrade when
they have more than one tax with the same name that violate
the tax name unique constraint (name, company_id, type_tax_use, tax_scope).
This will adapt the update of taxes script to handle this situation
by renaming such taxes to [old] taxname, [old1] taxname, etc.

opw-3178128

closes odoo/odoo#117771

Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
Signed-off-by: default avatarClaire Bretton <clbr@odoo.com>
parent 0faacfe2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment