Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4441 มุมมอง

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?


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 16
7966
0
มี.ค. 25
1440
0
ม.ค. 25
3569
filter_partner not working แก้ไขแล้ว
1
ก.ย. 23
1344
1
ส.ค. 23
14919