Is there any way to write a date filter for the previous weekday or business day?
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ờ
2
Trả lời
2558
Lượt xem
I needed a filter that would show deliver orders that were due today or late. Here’s how I accomplished that:
<filter name=“today” string=“For Today”
domain=“[(‘state’,'in’,('assigned’, 'partially_available’)),
('min_date’, ’<=’,datetime.datetime.now().strftime(’%Y-%m-%d 23:23:59’))]”
help=“Pickings to be done today”/>
I've written a post that goes into a bit more detail here: http://haplesstechnoweenie.com/post/143806280450/add-for-today-date-filter-to-odoo-search-view
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ý
Does this exist?