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 ?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/27/13, 12:34 PM|
|Seen: 1149 times|
|Last updated: 3/16/15, 8:10 AM|