add the “today” filter to a view in the pos session model. To view today's sessions only
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi,
To add a "today" filter to a view in the POS session model in Odoo, you can use domain filtering in the XML definition of the view.
Hope it helps
Thank you very much, does it also work in studio with odoo entreprises in saas?
Hi.
I copy and paste your filter domain but for use in crm.lead model with create_date field but i have an error:
Uncaught Promise > Failed to evaluate the domain: ["&", ("type", "=", "opportunity"), ("create_date", ">=", datetime.datetime.combine(datetime.date.today(), datetime.time.min))]. Cannot read properties of undefined (reading 'hour')
can you help me or maybe give some ideas?
I assume that this is checking today in UTC which might not be the same as in user's timezone.
In the XML you'd need to encode '<' and '>' characters using < and >, probably this is Gabriel's issue.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 10 25
|
219 | ||
|
1
thg 9 25
|
1276 | ||
|
2
thg 9 25
|
1459 | ||
|
1
thg 8 25
|
1204 | ||
|
1
thg 7 25
|
1484 |