跳至內容
選單
此問題已被標幟
1 回覆
3087 瀏覽次數

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