Skip to Content
Menú
This question has been flagged
4657 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 16
8158
0
de març 25
1783
0
de gen. 25
3998
1
de set. 23
1622
1
d’ag. 23
15525