openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #09939
[Bug 943410] Re: Error in crm_Action_rule if action specifies "Add Watchers (CC)"
Hello Daniel.
I have completely checked your issue.
You have faced this problem because you have given your mail ids like
xyz@xxxxxxxx, abc@xxxxxxxx at "Add Watchers (CC)" field instead of
'xyz@xxxxxxxx', 'abc@xxxxxxxx'. If you tried mail address with '' then
all are working fine and you won't face any traceback. So I suggest you
just pass your mail address like 'xyz@xxxxxxxx', 'abc@xxxxxxxx' at "Add
Watchers (CC)" field.
please look into lp:689576 also.
Thanks
** Changed in: openobject-addons
Importance: Undecided => Wishlist
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/943410
Title:
Error in crm_Action_rule if action specifies "Add Watchers (CC)"
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Found in trunk 6.2, revision 6650:
If an action rule is created with an email in the "Add Watchers (CC)"
field, the executions fails:
2012-02-29 16:57:22,060 10158 ERROR ? openerp.addons.base.ir.ir_cron: Call of self.pool.get('base.action.rule')._check(cr, uid, *()) failed in Job 4
Traceback (most recent call last):
File "/home/erp_user/openerp/production/server/openerp/addons/base/ir/ir_cron.py", line 138, in _callback
method(cr, uid, *args)
File "/home/erp_user/openerp/production/server/openerp/addons/base_action_rule/base_action_rule.py", line 277, in _check
self._action(cr, uid, [rule.id], [obj], context=context)
File "/home/erp_user/openerp/production/server/openerp/addons/base_action_rule/base_action_rule.py", line 472, in _action
self.do_action(cr, uid, action, model_obj, obj, context=context)
File "/home/erp_user/openerp/production/server/openerp/addons/crm/crm_action_rule.py", line 105, in do_action
#BUG: write['email_cc'] = obj.email_cc + ',' + obj.act_email_cc
File "/home/erp_user/openerp/production/server/openerp/osv/orm.py", line 478, in __getattr__
raise AttributeError(e)
AttributeError: "Field 'act_email_cc' does not exist in object 'browse_record(project.issue, 6)'"
The issue is rather simple: in lines 103 and 105 of crm_action_rule.py, "obj.act_email_cc" should be corrected to "action.act_email_cc"
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/943410/+subscriptions
References