Hello ,
I have checked this issue at my end with trunk.
I have face the problem with condition on server action when I Fetch mail.
It's Gives me a Traceback like ...
Traceback (most recent call last):
File "/home/jir/workspace/trunk6/addons/fetchmail/fetchmail.py", line 195, in
fetch_mail
action_pool.run(cr, uid, [server.action_id.id], {'active_id': res_id,
'active_ids':[res_id]})
File
"/home/jir/workspace/trunk6/server/openerp/addons/base/ir/ir_actions.py", line
650, in run
expr = eval(str(action.condition), cxt)
File "/home/jir/workspace/trunk6/server/openerp/tools/safe_eval.py", line
241, in safe_eval
return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict,
locals_dict)
File "", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'name'
Steps :
1) Set Out going mail server.
2) Define a incoming mail server.
A) Create a new record. [ crm.lead ]
B) Create a server action :
Object : crm.lead
Condition : [(obj.name,'=','Test')]
Action Type : Email
3) Test & Confirm
4) Click on Fetch Mail.
I have apply a given patch. it solve trackback problem but
It's still not working base on condition.
Thank you!
** Changed in: openobject-addons
Importance: Undecided => Low
** 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/950744
Title:
fetchmail can't run 'code' server action
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Due to line 195 of fetchmail.py[1], line 633 of ir_actions.py[2] will
never be True and object will always be None.
This prevents 'python code' server actions to be run by fetchmail.
I'm attaching patch.
[1]
http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/view/6658/fetchmail/fetchmail.py#L184
[2]
http://bazaar.launchpad.net/~openerp/openobject-server/6.1/view/4096/openerp/addons/base/ir/ir_actions.py#L626
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/950744/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help : https://help.launchpad.net/ListHelp