Mark As Done - how to restrict to update only by the same users
Currently - any user can do -DONE - for some one lese
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Mark As Done - how to restrict to update only by the same users
Currently - any user can do -DONE - for some one lese
It seems like you want to restrict the ability to mark a record as done to only the user who created the record, you can use Odoo's Record Rules feature.
Here are the steps to create a record rule to achieve this:
Go to Settings -> Technical -> Security -> Record Rules.
Click on "Create" to create a new record rule.
In the "Object" field, select the object for which you want to create the rule. For example, if you want to restrict the ability to mark a task as done, select "Task" as the object.
In the "Domain" field, enter the following domain filter to restrict access to only the user who created the record:
css
[('create_uid', '=', user.id)]
This will limit access to only the user who created the record.
In the "Access Rights" tab, set the access rights for the record rule. For example, you can allow the user to read and write their own records, but not other users' records.
Save the record rule and test it to make sure it is working as expected.
With this record rule in place, users will only be able to mark their own records as done and will not be able to mark other users' records as done.
If you could provide more details about your use case and requirements, I might be able to help you better.
Hi we are using ODOO 14 .sh - here we not finding object field
kindly advice
( In the "Object" field, select the object for which you want to create the rule. For example, if you want to restrict the ability to mark a task as done, select "Task" as the object.)
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-te