hi all,
I have created a new model with two fields and gave permissions too in the CSV file but I am able to access only one field of that model not able to access the second field of that model
code:
class ChangeUserAssignedd(models.TransientModel):
_name = 'change.user.assignedd'
user_id = fields.Many2one('res.users',string="Assigned To")
project_id = fields.Many2one('project.project',string="Project")
csv file :
access_change_user_assignedd_user,change.user.assignedd,model_change_user_assignedd,base.group_user,1,1,1,1
access_change_user_assignedd_manager,change.user.assignedd,model_change_user_assignedd,base.group_erp_manager,1,1,1,1
i can access user_id field but not the project field when I try to access its showing this error:
Sorry, you are not allowed to access documents of type 'Unknown' (_unknown). No group currently allows this operation. - (Operation: read, User: 2)
those objects relation is showing as unknown
Hi Guna,
The problem is dependency error
In your module, manifest file add this in depends,
'depends': ['project']