Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4506 มุมมอง

I have some fields which will be available only for permitted group users. I have a configuration screen where user can select the groups to be assigned .

My model is like  this:

class service_config(models.Model):     
_name = 'service.config'
service_type=fields.Selection(selection=[('1', 'Service type 1'),('2', 'Service Type 2')])
authorized_group = fields.Many2many('res.groups')

In another model i have certain fields as per the service type and those fields should be accessible by the authorised group users only. How to achieve this ?

I know how to assign group permission over a field when i already know the groups but how to configure it when the groups are being set dynamically and stored in another model.  I have no control over which groups will be chosen


Any ideas.. please help.


อวตาร
ละทิ้ง

Please elaborate more your case or if possible can you please show us with an example.

คำตอบที่ดีที่สุด

Hi T Ketaki Debadarshini

You can achieve this by looking following link

\https://www.odoo.com/forum/help-1/question/group-wise-field-permission-read-write-152570

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Group access permissings wrong แก้ไขแล้ว
1
ก.พ. 23
2446
Group wise field permission read,write แก้ไขแล้ว
1
ก.ค. 19
5453
2
ก.ค. 23
5708
Show buttons only to users in a group แก้ไขแล้ว
3
ม.ค. 24
12754
2
มี.ค. 25
5882