Skip to Content
Menu
This question has been flagged

Hello,

I have created 3 groups 

1) User 
2) Owner
3) Manager

Also, I my form view I am defining user, owner and manager (i.e: res.users relation field)

Record A is create by Group User (should only be seen by that user not to the whole group) when it is in draft stage

Then when User click button confirm it should go to the Owner (in this also, should only be seen by that user not to the whole group)

Same going to the manger. 
In the button I given sudo also i.e: 

def approval_user(self):
for rec in self:
rec.sudo().write({
'states': 'owner'
})


but this giving me error

Due to security restrictions, you are not allowed to access 'Invoice Approval' (invoice.approval) records. Records:  003 (id=4) User: Owner (id=9) T

his restriction is due to the following rules: 

- Invoice Approval rule for 'user' 

- Invoice Approval rule for 'Owner' 


Contact your administrator to request access if necessary.



Please help me resolve or understand this issue why Odoo is not capable to handle is kind to access when security X axis and Y axis is applied.


Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
nov 24
1581
2
jan 24
3307
1
máj 23
2022
2
apr 23
3024
0
aug 21
2460