跳至内容
菜单
此问题已终结
4455 查看

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?


形象
丢弃
相关帖文 回复 查看 活动
1
9月 16
7981
0
3月 25
1443
0
1月 25
3576
1
9月 23
1351
1
8月 23
14930