Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4438 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
zář 16
7958
0
bře 25
1440
0
led 25
3567
1
zář 23
1344
1
srp 23
14916