Skip to Content
Menu
This question has been flagged
1 Odpoveď
3183 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
8051
1
jan 17
3900
0
júl 16
2681
1
dec 15
4003
1
aug 24
1956