[FIX] crm: fix
authorHarry (OpenERP) <hmo@tinyerp.com>
Wed, 10 Oct 2012 07:22:44 +0000 (12:52 +0530)
committerHarry (OpenERP) <hmo@tinyerp.com>
Wed, 10 Oct 2012 07:22:44 +0000 (12:52 +0530)
bzr revid: hmo@tinyerp.com-20121010072244-5wsnaqwpydx59dmg

addons/crm/crm_action_rule.py

index c923d37..910a1fc 100644 (file)
@@ -79,7 +79,7 @@ class base_action_rule(osv.osv):
             write['section_id'] = action.act_section_id.id
 
         if hasattr(action, 'act_categ_id') and action.act_categ_id:
-            write['categ_ids'] = [4, action.act_categ_id]                        
+            write['categ_ids'] = [4, action.act_categ_id.id]                        
 
         model_obj.write(cr, uid, [obj.id], write, context)
         return res