コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3086 ビュー

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


アバター
破棄
最善の回答

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)

アバター
破棄
関連投稿 返信 ビュー 活動
1
9月 17
7947
1
1月 17
3819
0
7月 16
2571
1
12月 15
3927
1
8月 24
1834