Odoo Help

2
3 Answers
4
Mind And Go
5/14/14, 4:56 PM

Hy,

  1. Access rules are per Model access rules and record rules are per Record rules so they can't override the first rule.
  2. I think so
  3. Indirectly it could as you could allow people to see datas that is not natively supposed to be displayed. It's a kind of reduc/increase permission
    1. There is no such an inverse operand but solutions exists check below

Multiple answer for your right access :

  1. For letting the manager read their own project, a simple
    [('user_id','=', user.id)]
    should help because project inherits from account.analytic.account and the project manager is the anlytic one.
  2. For the many2many field Maybe you could try something like this, create another many2many field in the res.users object, call it projects_ids then you'll be able to do something like this :
    [('id','in', [ p.id for p from user.project_ids ])]

Hope it could help

 

 

 

0
Tibor Galko
3/1/19, 10:01 AM

Hello, In odoo 11 when sending created sale order as email i get error saying that requested operation cannot be completed due to record rules on document Message with operation read. But i don't see this in server logs there is only this: "The requested operation cannot be completed due to record rules: Document type: res.users, Operation: read, Records: 1, User: 27" . I have domain filter for users in place: ['|',('id','=',user.id),('id','=',False)] but removing it does not solve the problem. This error occurs only on some users in same group not all of them. When i transferred whole database to another server i didn't get the error while sending same sale order.

0
Allenparker
7/2/18, 8:29 PM

This is very helpful to me because I am tried hard to find this I take a help of https://chathelp.org/avast-support/ this site to know this but this site didn't help me properly. I think this post help most of the people who want to know this.

Ask a Question
Writer
Keep Informed
7 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now