diff options
| author | Nicolas Seinlet <nse@openerp.com> | 2019-01-18 09:20:02 +0000 |
|---|---|---|
| committer | Nicolas Seinlet <nse@openerp.com> | 2019-01-18 09:20:02 +0000 |
| commit | f8e37d6a808a302cda973bc0c6f2b275355ef74c (patch) | |
| tree | bc3bb1e9e1542faa831979809ff9ace2bd9c05cd /addons/website/static/src | |
| parent | 649ea4927e30bf19168f76e02f149912c15cae13 (diff) | |
[IMP] improve overridden sql constraints support
If module A define an sql constraints and module B, which depends on
module A, override the sql constraint, we must ensure having only the
last definition in constraints list. Having the two versions in the list
makes the ORM continuously trying to drop the second version by the
first one, then recreate the second version, when performing operations
like an upgrade a module B.
An illustration of this is the login_key on res.users, which is unique
per login in base, but unique per (login, website) in website.
closes odoo/odoo#30334
Diffstat (limited to 'addons/website/static/src')
0 files changed, 0 insertions, 0 deletions
