Skip to content
Snippets Groups Projects
Commit cbbe68cc authored by Paolo (pgi)'s avatar Paolo (pgi) Committed by Olivier Dony
Browse files

[FIX] base: invalid UNIQUE constraint just warn


When a submodule overrides an old UNIQUE constraint with a new one,
records in that module may respect the new one and not the old one.
As the old module is updated, it would fail giving an ERROR message,
and therefore blocking the Odoo.sh deployment pipeline.

i.e. website_sale (old): res_users_login_key -> ['login', 'website_id']
             base (new): res_users_login_key -> ['login']

With this patch, the error level is changed from ERROR to WARNING,
leaving Odoo.sh free to continue the build deployment, as the error
was not a blocking one.

closes odoo/odoo#79178

X-original-commit: 8ed3641f
Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
Signed-off-by: default avatarPaolo Gatti (pgi) <pgi@odoo.com>
parent dc7e08d1
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