[FIX] ir.model.fields: better unlink
authorMartin Trigaux <mat@openerp.com>
Tue, 8 Jul 2014 11:55:48 +0000 (13:55 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 8 Jul 2014 11:55:48 +0000 (13:55 +0200)
commit6af3193d17021108f7501cfda824e7a1aecc8a85
treea59c27b86f3dfba98aa226ce27683f3a45854cb9
parent6b274e4451f1ef06b12014ab4692cc1a5b6fcc80
[FIX] ir.model.fields: better unlink

When droping a column, remove also the relation table in case of custom m2m field.
The relation table needs to be dropped otherwise an unremovable constraint to the targetted table is kept (and anyway is not needed anymore).
openerp/addons/base/ir/ir_model.py