Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3493 Widoki

I want that a user that have the portal group, can create a product. How can I do that?


Awatar
Odrzuć
Najlepsza odpowiedź

Normally portal users will have no access right to create products. So you should create a html form and action should create the products with the details. While creating you have to write code to create as a superuser.

eg: request.env['product.template'].sudo().create(*kw)

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 17
8500
1
sty 17
4249
0
lip 16
2964
1
gru 15
4205
1
sie 24
2413