uninstall: avoid errors during uninstall
authorMartin Trigaux <mat@openerp.com>
Thu, 5 Jun 2014 10:52:11 +0000 (12:52 +0200)
committerMartin Trigaux <mat@openerp.com>
Thu, 5 Jun 2014 10:52:11 +0000 (12:52 +0200)
commit426993e06d0b4806c6bad5d35a8daabf894feeab
tree42750392ed87a269b890cabd396d276e34b89655
parent25292ef0a5c1a7819d6de144e9f4ee59047380c9
uninstall: avoid errors during uninstall

When uninstalling a module, remove the ir.model.constraint after removing the non-model records and before fields and model definition.
Without this fix, some constraint would be removed too early allowing to have broken relations and data left from removed module.
openerp/addons/base/ir/ir_model.py
openerp/addons/base/module/module.py