Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

Restrict users to see only his own contacts odoo

Hello, I don't if is the right approach but I solved the problem as follows:

1) Switch off the record rule res.partner.rule.private.employee.

2) Create a new record rule Own contacts for the Contact object that applies for read, write, create and delete
and uses ['|', ('type', '!=', 'private'), ('type', '=', False), ('user_id', '=', user.id)] as Domain Filter and Sale /User: Own Documents Only as Group.

3) Create a new record rule All contacts for the Contact object that applies for read, write, create and delete
and uses [(1, '!=', 1)] as Domain Filter and Sale /User: All Documents as Group.

In this way, I can restrict the users to see their own contacts and also keep the private address feature.

Suggestions are welcome. Regards.
Comment

PREVIOUS NEXT
Code Example
Typescript :: kingthings tryperwriter fonts premier 
Typescript :: allow specific string in type 
Typescript :: usually placed in footer 
Typescript :: jest aliases typescript storybook 
Typescript :: fieldmatch cannot be resolved to a type 
Typescript :: Implement a function that counts the number of nodes in a circularly linked list 
Typescript :: element of an array is the same as any of the previous elements pandas 
Typescript :: return type depends on input typescript 
Typescript :: is subscribing to a lot of events in ngonint bad 
Typescript :: bibtex remove brackets in note field 
Typescript :: react fetch data (weather) 
Typescript :: sorting list of multiple in an ascending order 
Typescript :: typescript "variable!: type" notation 
Typescript :: typescript object annotation 
Typescript :: modify objects using dot notation 
Typescript :: Vue In Typescript 
Typescript :: The command "composer require barryvdh/laravel-dompdf" always gets an error 
Typescript :: how to add in a list of objects 
Typescript :: combine 2 lists to dataframe python 
Typescript :: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in 
Typescript :: Alert cannot operate on nodes the current scene inherits from 
Cpp :: dart and or 
Cpp :: sfml mouse position 
Cpp :: How to make two dimensional string in c++ 
Cpp :: c++ is string a number 
Cpp :: for vector c++ 
Cpp :: cpp read csv 
Cpp :: repeat character n times c++ 
Cpp :: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/ 
Cpp :: c++ save typeid 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =