Skip to Content
Menu
This question has been flagged
1 Odpoveď
3094 Zobrazenia

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


Avatar
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
sep 17
7949
1
jan 17
3825
0
júl 16
2575
1
dec 15
3928
1
aug 24
1841