From 63ace375f08865724b5ea1fd89e8364005ea7f2c Mon Sep 17 00:00:00 2001 From: "Jay Vora (OpenERP)" Date: Tue, 22 Mar 2011 20:45:06 +0530 Subject: [PATCH] Fix in final mode bzr revid: jvo@tinyerp.com-20110322151506-o6f3m3ps4m8ew8q9 --- bin/osv/orm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 5b9c854f8a6..7d17cd72345 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -3237,12 +3237,12 @@ 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._name, referenced_ids) + pool_model_data.unlink(cr, uid, referenced_ids, context=context) # 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)]) + ir_value_ids = pool_ir_values.search(cr, uid, [('res_id','in',list(sub_ids)),('model','=',self._name)], context=context) if ir_value_ids: - pool_ir_values.unlink(cr, uid, ir_value_ids) + pool_ir_values.unlink(cr, uid, ir_value_ids, context=context) for order, object, store_ids, fields in result_store: if object != self._name: