Hi all, I successfully installed tryton on Docker, pretty straightforward. This time I tried installing on my local Debian. tryton Desktop client is running with no problems. and trytond server is running. I downloaded sao source code and when I launch localhost:8000 on the browser I get Application Error: FORBIDDEN. I tried to debug and could find something in trytond/protocols/dispatcher.py line 166:
@app.auth_required
@with_pool
def _dispatch(request, pool, *args, **kwargs):
obj, method = get_object_method(request, pool)
# Added this here to ignore obj = 'get_search'
if method == 'get_search':
response = app.make_response(request, [])
return response
if method in obj.__rpc__:
rpc = obj.__rpc__[method]
else:
abort(HTTPStatus.FORBIDDEN)
So, I think I’m missing a module here, which has the method get_search?
This is my tryton.conf, with root path set as following. But if the root path was not setup correctly, it shouldn’t work at all even with the tweak I did by adding that if block. I mean after adding that I could get past through that Application Error: FORBIDDEN
Please provide more detailed information about what you are doing and when is the error happening.
For now I understand that the error happens when you open the URL.
trytond -c ./trytond.conf -d test_db
I’m trying install web client. I followed the following steps:
tar -xf tryton-last.tar.gz
mv package sao-6.2.3
Okay, I was using sao-6.2.3 with trytond-last. I changed sao to the latest build. And now I’m able to access the URL without any problem.
Yes, your understanding it correct, the error happens when I open the URL, and I added that if method == 'get_search':, so I could skip through the error. Updating my sao build to the latest fixed the issue.