Skip to Content
Menu
This question has been flagged
3498 Views

When I create a filter on sale orders with this:

('write_date','<',(datetime.date.today()-relativedelta(days=0.034)).strftime('%Y-%m-%d'))

it works well. I can use it to filter the list of sale orders.

But if I use the same line in the filter of an automated action, it does not work:

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

What is the source of that schizophrenic behaviour?

Is there any other way to say "last edited at least 5 minutes ago" in a filter expression?


Avatar
Discard
Related Posts Replies Views Activity
1
Sep 16
7092
1
Sep 23
390
1
Aug 23
12549
1
Aug 23
11054
1
Jul 23
7228