Undetected access error on Purchase report per Supplier
When trying to opening Purchases Report per Supplier, i got this error:
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/protocols/dispatcher.py", line 216, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/model/modelsql.py", line 1106, in read
raise RuntimeError("Undetected access error")
RuntimeError: Undetected access error
68243 140146903074496 [2024-12-10 13:49:23,143] ERROR trytond.protocols.wrappers <JSONRequest 1@127.0.0.1 'http://localhost:8000/tryton_preciball_prod_72_test/' [POST] model.purchase.reporting.supplier.read> in 16 ms
Traceback (most recent call last):
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/protocols/wrappers.py", line 208, in wrapper
result = func(request, pool, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/protocols/dispatcher.py", line 216, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/model/modelsql.py", line 1106, in read
raise RuntimeError("Undetected access error")
RuntimeError: Undetected access error
68243 140146903074496 [2024-12-10 13:49:23,144] DEBUG trytond.wsgi Exception when processing <JSONRequest 1@127.0.0.1 'http://localhost:8000/tryton_preciball_prod_72_test/' [POST] model.purchase.reporting.supplier.read>
Traceback (most recent call last):
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/wsgi.py", line 110, in dispatch_request
return endpoint(request, **request.view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/protocols/dispatcher.py", line 44, in rpc
return methods.get(request.rpc_method, _dispatch)(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/wsgi.py", line 76, in wrapper
return func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/protocols/wrappers.py", line 208, in wrapper
result = func(request, pool, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/protocols/dispatcher.py", line 216, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mrichez/Workspace/tryton/issues/tryton_72_dev/trytond/trytond/model/modelsql.py", line 1106, in read
raise RuntimeError("Undetected access error")
RuntimeError: Undetected access error
Problem seems happens when purchasing in different currencies to the same supplier, so id (which is party.id) is no more unique.