Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I read the question "How to configure alerts for employee contract expiration" and I followed the video to configure an Automated Action that send me an email a month before a contract expire, but for me this does not work.
This is my configuration screenshots: http://www.yogile.com/bf2om8i3#41m
In the log file I see the scheduler running:
openerp.addons.base.ir.ir_cron: Starting job `Check Action Rules`.
openerp.addons.base.ir.ir_cron: cron.object.execute(u'test', 1, '*', u'base.action.rule', u'_check')
openerp.addons.base.ir.ir_cron: 0.005s (base.action.rule, _check)
But no email arrives in my mailbox.
I tried different things and I checked the record directly on the database, but I'm not able to discover the problem.
Someone can help me, please?
I know that the Automated Action is checked because of a bug (?)
If for "Delay After Trigger Date" field I set "Months" i can read in the logs:
ERROR test openerp.addons.base.ir.ir_cron: Call of self.pool.get('base.action.rule')._check(cr, uid, *()) failed in Job 6
Traceback (most recent call last):
File "/opt/openerp/oe/server/openerp/addons/base/ir/ir_cron.py", line 136, in _callback
method(cr, uid, *args)
File "/opt/openerp/oe/addons/base_action_rule/base_action_rule.py", line 261, in _check
delay = DATE_RANGE_FUNCTION[action.trg_date_range_type](action.trg_date_range)
File "/opt/openerp/oe/addons/base_action_rule/base_action_rule.py", line 37, in <lambda>
'month': lambda interval: timedelta(months=interval),
TypeError: 'months' is an invalid keyword argument for this function
1- As stated by Ludo-Neobis begin by checking if your mail system is configured correctly (Outgoing Server - SMTP).
2- The error indicated in your LOG: "months" is an invalid keyword.
Perhaps, it's a bug.
3- Try to use: -30 Days instead, to see if it works.
4- Try to review the steps here: https://www.odoo.com/forum/help-1/question/trigger-an-action-on-date-field-a-step-by-step-guide-48945#answer-48970
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/17/14, 3:04 AM|
|Seen: 1500 times|
|Last updated: 3/16/15, 8:10 AM|