Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4014 Ansichten

Hello, community.

I'm having an odd error due to "rules rejected on a model",


('The operation requested  ("read" en "Product catalog" (product.catalog)) was rejected by any of the following rules:\n\n\n(Records: False (id=00), User: Administrator (id=2))', None)


I've already check for read rights::

access_product_catalog,product.catalog,model_product_catalog,,1,0,0,0

I've also been trying other 'hacks' but the same odd result:

  • resigning rights,

  • creating new rule with [(1,'=',1)] domain;

  • sudo()

Any suggestions?

Thanks in advance

Avatar
Verwerfen
Autor Beste Antwort

Hi, "mistery" solved. 

The bug was due a tuple instead a string/array into domain.

domain = [ ('id', 'in', (5,)) ]

self.search(domain)


So, now:

domain = [ ('id', 'in', [5]) ]

..

So, I don't get why the bug was related with security rules.. a tale for my childrens.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
5
Juni 20
10105
1
Juni 25
4660
0
Juni 25
348
0
Jan. 25
1441
0
Jan. 25
1496