How to make a custom domain such as on my sales order line i want to restrain my final user to the children of my customer?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1) Add a field M20 in the list and form view of my sale order line
2) Place the field customer (order_partner_id) in the sale order line form. If it is not the case, the domain will never work.
3) Make a domain on my field in 1. Pay attention, because studio will only write [["partner_id","=","order_partner_id"]] but it should [["partner_id","=",order_partner_id]]
So in order to change 3 part of the domain, you have to adapt that manually in the sale order line form.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Feb 23
|
3041 | ||
|
1
Sep 21
|
3538 | ||
|
1
Feb 24
|
3165 | ||
|
1
Apr 21
|
8132 | ||
|
2
Oct 24
|
2927 |