Skip to Content
Menu
This question has been flagged
1 Reply
3105 Views

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


Avatar
Discard
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
Discard
Related Posts Replies Views Activity
1
Sep 17
7951
1
Jan 17
3830
0
Jul 16
2586
1
Dec 15
3929
1
Aug 24
1848