Skip to Content
Menu
This question has been flagged
1 Odpoveď
3515 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
8521
1
jan 17
4268
0
júl 16
2967
1
dec 15
4210
1
aug 24
2424