Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4428 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 16
7951
0
thg 3 25
1440
0
thg 1 25
3566
1
thg 9 23
1343
1
thg 8 23
14914