Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3333 Visninger

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


Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
sep. 17
8289
1
jan. 17
4044
0
jul. 16
2812
1
dec. 15
4092
1
aug. 24
2214