تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3089 أدوات العرض

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
سبتمبر 17
7947
1
يناير 17
3819
0
يوليو 16
2571
1
ديسمبر 15
3927
1
أغسطس 24
1834