[FIX]: crm: Fixed problem of adding category by automated actions
bzr revid: rpa@tinyerp.com-20121025062813-mfckkg0cc0ehsasu
This commit is contained in:
parent
013f14931b
commit
5a460a63fa
|
@ -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.id]
|
||||
write['categ_ids'] = [(4, action.act_categ_id.id)]
|
||||
|
||||
model_obj.write(cr, uid, [obj.id], write, context)
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue