Community mailing list archives

community@mail.odoo.com

Re: Strange error with record rules!!

by
Guru
- 05/06/2015 14:28:19
 File "/opt/odoo/odoo-server/addons/stock/stock.py", line 1963, in write
    old_move_date = datetime.strptime(move.move_dest_id.date_expected, DEFAULT_SERVER_DATETIME_FORMAT)
  File "/opt/odoo/odoo-server/openerp/fields.py", line 810, in __get__
    return record._cache[self]
  File "/opt/odoo/odoo-server/openerp/models.py", line 5913, in __getitem__
    return value.get() if isinstance(value, SpecialValue) else value
  File "/opt/odoo/odoo-server/openerp/fields.py", line 55, in get
    raise self.exception
AccessError: ('AccessError', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: stock.move, Operation: read)')
2015-05-06 18:27:23,034 1564 INFO whm werkzeug: 192.168.159.1 - - [06/May/2015 18:27:23] "POST /web/dataset/call_button HTTP/1.1" 200 -


On Wed, May 6, 2015 at 7:17 PM, Rami Talat <rami.talat@gmail.com> wrote:
Dear Abu,
Try to check log file for further info...

On Wed, May 6, 2015 at 7:03 PM, Abu Helal <guru.abu.helal@gmail.com> wrote:
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 ... 

"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

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


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