Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2958 Visualizzazioni

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?

Avatar
Abbandona
Autore Risposta migliore

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.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
feb 23
3055
1
set 21
3551
1
feb 24
3179
1
apr 21
8174
2
ott 24
2949