Dears,
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 ?
I have the same issue. Filter is working in the search. But when I use it with automated action I get the same error. Anyone an idea what to use if you want to work with this filter in an Automated action?