openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #08301
[Bug 943410] [NEW] Error in crm_Action_rule if action specifies "Add Watchers (CC)"
Public bug reported:
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"
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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):
New
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
Follow ups
References