Community mailing list archives
Re: time.strftime error on tasksby
is it possible without writing a module, I don't want to make module for this small thing, also it's working on other objects.
On 07/23/2015 09:37 AM, Levent Karakas wrote:<blockquote cite="mid:CAJ++kTAGzmHnnZ9VkZ80jH0b2EBQanX1PHSJq10B9ja6hveSQA@mail.gmail.com" type="cite">
Would making a computed field in the model and using it in the domain filter works for you?
2015-07-22 22:17 GMT+03:00 Mohamed M. Hagag <firstname.lastname@example.org>:
is it possible to do imports in a domain filter ?!
On 07/22/2015 08:48 PM, Yassine Teimi wrote:<blockquote cite="mid:CAJn9K8-8bO3+NnZEAwG7Q9PpVVzsJ1hSUZgApALWJTjz6uuCjA@mail.gmail.com" type="cite">
Did you do an "import time" before defining the condition ?Le 22 juil. 2015 18:37, "Mohamed M. Hagag" <email@example.com> a écrit :
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 ?
Post to: mailto:firstname.lastname@example.org