How can we add more than 1 object in a single record rule and check rule using this 2 objects...
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ờ
AFAIK you can't. Domains only works with one record. You can create a related or function field in the object that you want to filter to reflect the value of the other object in it and then use that field in the rule. Note that if you use related or function field you need to store it to make Record Rules work. For function field, you can implement fnct_search instead of storing the value.
Thank you Ivan,
Can u plz tell me that what function should i create to get the crm.phonecall object in crm.lead form..
Thankz..
That will depends on what you want to filter on.
Say you want to filter crm.phonecall based on certain information in crm.lead. crm.phonecall is linked to crm.lead through a many2one field 'opportunity_id'. So, you can either create a function call field that retrieve information based on the crm.phonecall's 'opportunity_id'. Or you can create a related field to get the information from any of the crm.lead's field.
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 1 24
|
3294 | ||
|
0
thg 1 24
|
1583 | ||
|
0
thg 12 20
|
2139 | ||
|
1
thg 9 19
|
4923 | ||
|
0
thg 6 17
|
3176 |