Skip to Content
Menú
This question has been flagged
1 Respondre
3336 Vistes

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


Avatar
Descartar
Best Answer

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)

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 17
8294
1
de gen. 17
4044
0
de jul. 16
2813
1
de des. 15
4096
1
d’ag. 24
2217