From af3000b6ec50c764efa3c010396455dbf81c8622 Mon Sep 17 00:00:00 2001 From: "Jay Vora (OpenERP)" Date: Tue, 22 Mar 2011 20:40:43 +0530 Subject: [PATCH] correction to above commit bzr revid: jvo@tinyerp.com-20110322151043-j33dnwn03tk4h6tv --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index beb62f088ae..5b9c854f8a6 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -3237,7 +3237,7 @@ class orm(orm_template): # Step 1. Calling unlink of ir_model_data only for the affected IDS. referenced_ids = pool_model_data.search(cr, uid, [('res_id','in',list(sub_ids)),('model','=',self._name)], context=context) # Step 2. Marching towards the real deletion of referenced records - pool_model_data._unlink(cr, uid, self._model,referenced_ids) + pool_model_data._unlink(cr, uid, self._name, referenced_ids) # For the same reason, removing the record relevant to ir_values ir_value_ids = pool_ir_values.search(cr, uid, [('res_id','in',list(sub_ids)),('model','=',self._name)])