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

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
8141
1
يناير 17
3993
0
يوليو 16
2774
1
ديسمبر 15
4047
1
أغسطس 24
2100