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

Hey! i am looking for a use case in which portal user have write access. Do you guys have any idea about that? Right now i can view the record to my portal user, e.g attendance but it is is read only , kindly tell how to give write access in such cases, and of course i am using controllers.

Please help ! Thanks

الصورة الرمزية
إهمال

Groups and Access Rights: https://goo.gl/4jAhtH

الكاتب

Thanks

أفضل إجابة

Hi, 

Yes you can grant the write permission to the portal users for your object/model. 

If you go to Settings -> Users & Companies -> Groups, and search portal, then you can see the groups of the Portal Users, its id is base.group_portal

You can see some examples in the existing odoo code, see line 4: https://github.com/odoo/odoo/blob/12.0/addons/gamification/security/ir.model.access.csv

Also you can achive the same by using sudo in the code, which is not recommended method.

Thanks

الصورة الرمزية
إهمال
الكاتب

Hey thanks for replying. You mean to say that i just had to create a csv file and write 1,1,1,1 for my rights and it will work? Just like any custom module

المنشورات ذات الصلة الردود أدوات العرض النشاط
4
مايو 20
8437
1
أغسطس 19
3158
1
مارس 15
5248
0
ديسمبر 24
845
1
أغسطس 24
1783