Ir al contenido
Menú
Se marcó esta pregunta
4676 Vistas

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 16
8167
0
mar 25
1785
0
ene 25
4004
1
sept 23
1627
1
ago 23
15534