Community mailing list archives

community@mail.odoo.com

time.strftime error on tasks

by
Mohamed Hagag
- 07/22/2015 14:34:10

Dears,


I have automated action for started tasks that's using time.strftime ,


the filter is working fine on the interface but it generates error below in automated action:


ValueError: "name 'time' is not defined" while evaluating


this is the filter :

[('date_start', '<=', time.strftime('%Y-%m-%d')), ('stage_id', 'not ilike', 'done')]


And I'm using stftime on other objects and it's not generating this error only on task object .


Anyone knows why this error on tasks only ?


Regards,