<record id="view_sale_order_last_month" model="ir.rule">
<field name="name">View last one month order</field>
<field name="model_id" ref="sale.model_sale_order"/>
<field name="domain_force">[(‘create_date','>=',(context_today()-relativedelta(months=1)).strftime('%%Y-%%m-01')),(‘create_date','<',time.strftime('%%Y-%%m-01'))]</field>
<field eval="1" name="perm_read"></field>
<field eval="0" name="perm_write"></field>
<field eval="0" name="perm_unlink"></field>
<field eval="0" name="perm_create"></field>
</record>
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ờ
4263
Lượt xem
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 | |
---|---|---|---|---|
|
6
thg 5 24
|
49563 | ||
|
0
thg 7 23
|
207 | ||
|
1
thg 2 23
|
697 | ||
|
0
thg 2 23
|
724 | ||
|
1
thg 4 22
|
2902 |
Why would you want to do that using a Record Rule? Why not try Filters: https://www.odoo.com/forum/help-1/question/115765/#answer-115766