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 created a filter to filter tasks with no work in the last day, and it's working fine while applying it in filters.
While the filter is linked with automated action I get this error when i try to create or modify a task I get an error with :
openerp/addons/base_action_rule/base_action_rule.py", line 101, in _filter domain = [('id', 'in', record_ids)] + eval(action_filter.domain) File "<string>", line 1, in <module> NameError: name 'context_today' is not defined
If there's no automated action linked with the filter - I can modify tasks normally without errors.
The domain in the filter is:
['&', ['write_date', '<', ((context_today() - relativedelta(days=1)).strftime('%Y-%m-%d'))], ['progress', '<', 100]]
Can anyone tell me what's the problem ?
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: 12/27/13, 12:34 PM|
|Seen: 1371 times|
|Last updated: 3/16/15, 8:10 AM|