In my vanilla Tryton, now I can click on Dashboard menu and it shows a screen, not an error anymore. However, I can only click one time. After I close Dashboard and go to any other menu, click on Dashboard menu again doesn’t show anything - only blank screen and seems like no process happens.
On the other side, if at that time I try to logout (Administrator), nothing happen but when I try to refresh page, it’s already logged out.
Here’s the result of my log file. When I click “Dashboard”
[Tue Feb 07 13:53:45 2023] INFO:trytond.wsgi:<JSONRequest 1@127.0.0.1 ‘http://localhost:8000/trytondb/’ [POST] model.ir.ui.icon.list_icons>
[Tue Feb 07 13:53:45 2023] INFO:trytond.wsgi:<JSONRequest 1@127.0.0.1 ‘http://localhost:8000/trytondb/’ [POST] model.ir.ui.menu.resources>
[Tue Feb 07 13:53:45 2023] INFO:trytond.wsgi:<JSONRequest 1@127.0.0.1 ‘http://localhost:8000/trytondb/’ [POST] model.ir.action.keyword.get_keyword>
[Tue Feb 07 13:53:45 2023] INFO:trytond.protocols.dispatcher:ir.ui.icon.list_icons({‘client’: ‘dd91d2ff-9a3b-423d-8f74-1c1510e3fc84’, ‘company_filter’: ‘one’, 'co [truncated]…) from admin@127.0.0.1/trytondb/ in 18 ms
[Tue Feb 07 13:53:45 2023] INFO:werkzeug:127.0.0.1 - - [07/Feb/2023 13:53:45] “POST /trytondb/ HTTP/1.1” 200 -
[Tue Feb 07 13:53:45 2023] INFO:trytond.wsgi:<JSONRequest 1@127.0.0.1 ‘http://localhost:8000/trytondb/’ [POST] model.ir.ui.icon.read>
[Tue Feb 07 13:53:45 2023] INFO:trytond.protocols.dispatcher:ir.ui.menu.resources(365, {‘client’: ‘dd91d2ff-9a3b-423d-8f74-1c1510e3fc84’, ‘company_filter’: ‘one’ [truncated]…) from admin@127.0.0.1/trytondb/ in 28 ms
[Tue Feb 07 13:53:45 2023] INFO:werkzeug:127.0.0.1 - - [07/Feb/2023 13:53:45] “POST /trytondb/ HTTP/1.1” 200 -
[Tue Feb 07 13:53:45 2023] INFO:trytond.protocols.dispatcher:ir.ui.icon.read([6, 17, 18, 19], [‘name’, ‘icon’], {‘client’: 'dd91d2ff-9a3b-423d-8f74-1c1510e3 [truncated]…) from admin@127.0.0.1/trytondb/ in 15 ms
[Tue Feb 07 13:53:45 2023] INFO:werkzeug:127.0.0.1 - - [07/Feb/2023 13:53:45] “POST /trytondb/ HTTP/1.1” 200 -
[Tue Feb 07 13:53:45 2023] INFO:trytond.protocols.dispatcher:ir.action.keyword.get_keyword(‘tree_open’, [‘ir.ui.menu’, 365], {‘client’: 'dd91d2ff-9a3b-423d-8f74-1c1510e3f [truncated]…) from admin@127.0.0.1/trytondb/ in 40 ms
[Tue Feb 07 13:53:45 2023] INFO:werkzeug:127.0.0.1 - - [07/Feb/2023 13:53:45] “POST /trytondb/ HTTP/1.1” 200 -
[Tue Feb 07 13:53:45 2023] INFO:trytond.wsgi:<JSONRequest 1@127.0.0.1 ‘http://localhost:8000/trytondb/’ [POST] model.ir.ui.view.view_get>
[Tue Feb 07 13:53:45 2023] INFO:trytond.protocols.dispatcher:ir.ui.view.view_get(1573, {‘client’: ‘dd91d2ff-9a3b-423d-8f74-1c1510e3fc84’, ‘company_filter’: 'one [truncated]…) from admin@127.0.0.1/trytondb/ in 20 ms
[Tue Feb 07 13:53:45 2023] INFO:werkzeug:127.0.0.1 - - [07/Feb/2023 13:53:45] “POST /trytondb/ HTTP/1.1” 200 -
then I close Dashboard module and start to click on any other menu randomly, then I when I click on Dashboard menu, nothing happened. This problem doesn’t exist when I use Tryton desktop. I suppose, there must be something wrong with sao?
You should check the JS console log. I guess there is a crash when closing the dashboard which makes the client think that there is still a tab for the dashboard open.
I open JS Console and watch the behaviour. When I open Dashboard for the first time, everything is fine. After I closed Dashboard window and try to open Dashboard again by clicking on the Dashboard menu, JS console shows this:
This should be under dist folder, same level as node_modules and bower_components.
An easier approach:
Open your Network tab in Developer Tools and block /dist/tryton-sao.min.js requests. SAO will take care of the rest like Cédrik said.
To block the request you locate it, right click it and click “Block request URL” (name will change depending on browser but will be very similar).