Rucha (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-automated-categ-rpa into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-automated-categ-rpa/+merge/131314
Proposed patch will fix this issue:
Create an automated action for leads such that if it triggers, it will set
category "Categ1" to that lead,
now the problem is it triggers but doesn't set proper category.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-automated-categ-rpa/+merge/131314
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-automated-categ-rpa.
=== modified file 'crm/crm_action_rule.py'
--- crm/crm_action_rule.py 2012-10-10 07:22:44 +0000
+++ crm/crm_action_rule.py 2012-10-25 06:32:20 +0000
@@ -79,7 +79,7 @@
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
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp