Skip to content
Snippets Groups Projects
Commit 1da058f8 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] stock: Error when re-installing manufacturing application


Steps to reproduce the bug:
- Install MRP
- Uninstall MRP
- Install MRP

Bug:
An error was raised by sql constraint 'barcode_company_uniq' which ensures that
a barcode for a location is unique per company.
But when uninstalling MRP, some locations such as pbm_loc_id or sam_loc_id are set to
active = False and when re-installing MRP, the function _create_missing_locations tried
to re-create these locations and the sql constraint was raised.

opw:1967534

closes odoo/odoo#32882

Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
parent 4b0b00db
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment