This question has been flagged
2 Replies
4171 Views

Hello every one,

i'm new to odoo, and i'm facing an issue.

I'm using Odoo 12.0 CE.

I've enabled multi company  option and setup two companies A et B. The Company A is the default one.
Theses are the steps to reproduce the issue :
- Set active company to B
- Go to event module and clic on the create button
- Edit the event with the needed information
- Click on add a line to create the event ticket (seems that it wants to create a product). I got the following error (Type de document : product.product, Opération : read) 

If i follow the same steps for the company A every things work perfectly.

I activated the debug mode to see if i could find the setting to change... but i can't figure it out.

So if you guys could help me please.

Thx in advance.

Daniel


Avatar
Discard
Author Best Answer

Thx for your reply,

My access rights are identical... :(

Here is the log may be it can help to find the solution :
2019-02-04 23:27:07,218 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:07] "POST /web/dataset/call_kw/event.event/default_get HTTP/1.1" 200 - 5 0.003 0.007

2019-02-04 23:27:07,238 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:07] "POST /web/dataset/call_kw/event.event/onchange HTTP/1.1" 200 - 2 0.001 0.009

2019-02-04 23:27:07,265 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:07] "POST /web/dataset/call_kw/res.partner/name_get HTTP/1.1" 200 - 6 0.007 0.011

2019-02-04 23:27:07,272 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:07] "POST /web/dataset/call_kw/res.partner/name_get HTTP/1.1" 200 - 6 0.007 0.016

2019-02-04 23:27:07,284 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:07] "POST /web/dataset/call_kw/res.company/name_get HTTP/1.1" 200 - 10 0.020 0.013

2019-02-04 23:27:07,291 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:07] "POST /web/dataset/call_kw/res.users/name_get HTTP/1.1" 200 - 14 0.009 0.028

2019-02-04 23:27:19,957 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:19] "POST /web/dataset/call_kw/event.event/onchange HTTP/1.1" 200 - 1 0.000 0.007

2019-02-04 23:27:20,070 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:20] "POST /web/dataset/call_kw/event.event/onchange HTTP/1.1" 200 - 1 0.000 0.005

2019-02-04 23:27:21,489 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:21] "POST /web/dataset/call_kw/event.type/name_search HTTP/1.1" 200 - 5 0.004 0.007

2019-02-04 23:27:22,340 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:22] "POST /web/dataset/call_kw/event.event/onchange HTTP/1.1" 200 - 9 0.009 0.011

2019-02-04 23:27:27,862 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:27] "POST /longpolling/poll HTTP/1.1" 200 - 8 0.002 50.010

2019-02-04 23:27:34,963 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:34] "POST /web/dataset/call_kw/event.event.ticket/default_get HTTP/1.1" 200 - 5 0.002 0.005

2019-02-04 23:27:34,985 1 INFO db_odoo_12 odoo.models: Impossible d'effectuer l'opération demandée, en raison des règles d'enregistrement : Type de document : product.product, Opération : read, Enregistrements : 39, Utilisateur : 2 

2019-02-04 23:27:34,986 1 INFO db_odoo_12 odoo.models: Impossible d'effectuer l'opération demandée, en raison des règles d'enregistrement : Type de document : product.product, Opération : read, Enregistrements : 39, Utilisateur : 2 

2019-02-04 23:27:34,988 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:34] "POST /web/dataset/call_kw/event.event.ticket/onchange HTTP/1.1" 200 - 14 0.009 0.010

2019-02-04 23:27:35,009 1 INFO db_odoo_12 werkzeug: 172.18.0.1 - - [04/Feb/2019 23:27:35] "POST /web/dataset/call_kw/product.product/name_get HTTP/1.1" 200 - 9 0.006 0.008


The problem can easely reproduced by creating a second company and create an event while it is selected (on the right of the top menu).


Thx for your help.

Daniel

Avatar
Discard
Best Answer

Hi,

Such access issue can be check and fixed by looking at the record rules and access control list. What you have to do is that just activate the developer mode and navigate to Settings -> Technical -> Security, Under this menu, you can see two submenus, ie, Access Rights and Record Rules,

Now Open the record Rules menu/ Access Rights and search for the model product.product which is shown in the error message,

Now you can cross check one by one and see which access rights cause the issue and do accordingly


Thanks

Avatar
Discard