From 107bd89aea98c29c17292ad120458e8f3f03b083 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 31 May 2011 11:21:33 +0200 Subject: [PATCH] [IMP] convert: remove now useless call to ir.model.data._unlink for unlinked records. bzr revid: odo@openerp.com-20110531092133-rbobo5g4rmk1o8j7 --- openerp/tools/convert.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/openerp/tools/convert.py b/openerp/tools/convert.py index 5536f311eb8..dd3a3d4a285 100644 --- a/openerp/tools/convert.py +++ b/openerp/tools/convert.py @@ -301,13 +301,11 @@ form: module.record_id""" % (xml_id,) pass if ids: self.pool.get(d_model).unlink(cr, self.uid, ids) - self.pool.get('ir.model.data')._unlink(cr, self.uid, d_model, ids) def _remove_ir_values(self, cr, name, value, model): ir_value_ids = self.pool.get('ir.values').search(cr, self.uid, [('name','=',name),('value','=',value),('model','=',model)]) if ir_value_ids: self.pool.get('ir.values').unlink(cr, self.uid, ir_value_ids) - self.pool.get('ir.model.data')._unlink(cr, self.uid, 'ir.values', ir_value_ids) return True