Community mailing list archives

community@mail.odoo.com

Re: Strange error with record rules!!

by
Guru
- 05/06/2015 18:55:54
Dear Nhomar,
1- My record rule is:
     ['&', ('location_id', 'ilike', 'Suppliers'), '&', ('location_dest_id','ilike', 'Input'), ('picking_type_id', 'ilike', 'Receipts')]

2- The user has the "Warehouse User" privilege.
3- This error pops up when the storekeeper tries to "Transfer" the product(s) to the next stage of the warehouse flow.




On Wed, May 6, 2015 at 8:42 PM, Nhomar Hernández <nhomar@gmail.com> wrote:

2015-05-06 12:02 GMT-05:00 Abu Helal <guru.abu.helal@gmail.com>:
Dear community,
Hi.
I tried to organize our company's warehouses and locations to the desired structure from our company's point of view to locations such that, (Input, Stock, Packing, and Output).
Then I defined a separate record rule for each location, to differentiate between each location moves and the others. Foe a while, everything was going well, but surprisingly, it get a strange error for the storekeeper ... 

This is not an "Extrange Behavior".

to help you we need_

1.-. your record rule.
 2.-. User profile which is receiving the error.
3.- Which record/menu/action is having the problem.

Here definitivally you are having a normal issue of ACL due to overlapping of ACL.

"AccessError
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: stock.move, Operation: read) "
From the first glance I expected that the record rule missed the read permission, but that was wrong. The record rules have the four permissions set!

Can anyone help?
Regards,
Abu




--
--------------------
Saludos Cordiales

CEO at Vauxoo Odoo's Gold Partner.
 
--
Nhomar Hernandez
 

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe