Community mailing list archives
Re: Security Rules Issueby
Does anyone faced any similar issue and can give suggestions or provide a workaround for this issue.
Thanks & Regards,
On Wed, Sep 21, 2016 at 1:14 AM, Himanshu Mittal <email@example.com> wrote:
Hi Members,I was working for one of the clients and faced a strange issue.Let me describe you all the complete scenarioI have created three user Groups1. Senior OfficerOfficer2. AssessorThere is a new Model created and it has some fields in it and one of the fields is named as ASSIGNEE.The Assessor can only view the application assigned to him by Senior Officer.For that the security role that i wrote which runs perfectly fine is :<field name="domain_force">[('assigne
e','=',user.id)]</field>So, after when a series of processes run and Senior Officer assign the record i.e. to change the Field value of ASSIGNEE field than Assessor is able to see the record.However, the problem arises when the Assessor tries to Assign back the record back to Senior Officer i.e. to change the field value of ASSIGNEE.However, Odoo rule engine runs parallelly and it checks if this record got assigned back to the Officer, this record will go out of the domain area for Assessor and throws the read error.Can someone please help and suggest me, what should be done in this case.Thanks & Regards,ARLOSYST Team