Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3167 Prikazi

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


Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
sep. 17
8035
1
jan. 17
3877
0
jul. 16
2667
1
dec. 15
3989
1
avg. 24
1931