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

Looking for some code or a module that will allow me to limit the unpublishing and publishing of products to certain people.


I would like others to still be able to edit products, but not be able to toggle the is_published field.


Any ideas?  Odoo v16.

Avatar
Abbandona
Risposta migliore

Just create a res.group record to identify those users and take that group into account in order to raise an Exception if the User have the group that forbid the functionality to properly execute by extending the methods that publish and unpublish the products

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ott 23
2119
1
dic 22
10943
2
ott 18
8924
0
ott 15
29
0
ott 15
3275