missing menu items

Bug #920332 reported by Gautam
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Web Team

Bug Description

Hi,
There is a bug with the loading of the menus, I'm not sure if its in the web or the server side. The users don't get all menu items when clicking on the parent menu ( for example when clicking on Human Resources, the "Human Resources -> Employees" submenu does not show). When switching from "simple" to extended view it shows up(although not always).
Here is how i reproduced it:
I installed the Accounts, Sales and HR modules ( leaves, expenses, recruitment ) with the demo data. Assign a user to "Hr Manager" group and in extended view they can't see all the menu items. I don't think this error can be reproduced deterministic way.
I have attached a video and you can see when the user switches to extended view, the Employees and Expenses submenu disappear. Although doesn't happen always and its not always the same menu items, but once it does the server has to be restarted again.

I hope this video is clear enough, if you need more info please let me know.

Thanks

Related branches

Revision history for this message
Gautam (gditerp) wrote :
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Gautam,

I have checked your issue with latest updated code of trunk with web(6.1) but I didn't face any problem as you have describe in your specification. I have attached a video for your more reference so would you please check it
and informed us where you faced the problem and try again with latest updated code.

Thanks and waiting for your reply.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Can't reproduce it so far using the latest client, server and addons on OSX.

* Are you using the RC1 or the current trunk?
* Which browser are you using, under which OS? And likewise for the server, which OS is it running on?
* What are the specifics of your setup e.g. do you use openerp-web embedded or stand-alone?
* If the menus initially work correctly, can you get them to break by switching repeatedly between simplified and extended view or do you have to reinstall from scratch to get something that breaks on first try?

Revision history for this message
Gautam (gditerp) wrote :

Hi Xavier,
* I used the current trunk, not the RC1. I did a fresh checkout on saturday 21 at about 7 pm ( UTC time ). Sorry cant give you the exact revision as I don't have access to the machine till tomorrow.
* It was installed on an ubuntu 10.04 server edition and i tested on chrome 16.0.912.75 m and chromium 15.0.874.106.

* openerp-web embedded
the server is run with the following command
./openobject-server/openerp-server --load=web --addons-path=/home/openerp/bazaar/trunk/openerp-web/addons/,/home/openerp/bazaar/trunk/openobject-addons/ --log-level=info

* No, restarting the server is enough. Set the users view to simplified, restart the server and check. Try it a couple of times, if you can't reproduce it I will update my code and try again.

Like I said, it doesn't fail always but atleast 40 % of the time I am able to reproduce it. And its not always the same menu items.
If you still can't reproduce it I will update the machine tomorrow and test it again.

Thanks

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Gautam,

Thanks for your reply.

Today : with latest trunk I have applied same scenario as you have describe in your comment #5 and it's working fine no face any problem. See attached video with fresh db.

Thanks and waiting for your reply.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Revision history for this message
Gautam (gditerp) wrote :

Hi Vishal,

Thanks for your reply. I have just tested it again and the problem persists. I was unable to reproduce it when I ran the web server as stand-alone which is what you have done in the video ( port 8002 ). Try it with openerp-web embedded in the server. I have attached a video again of the error which I reproduced with the latest code.
 Server revision : 3977
 addons revision: 6377
 web revision: 2034

If you see, when you first switch, the time tracking menu is missing and then in the last switch the employees menu is missing.

Thanks and awaiting your reply,
Gautam

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello,

Oh! It's strange behavior of web after changing the Interface from the preferences. I have given web-addons path when start the server and started web on 8069(here my web server(8002) is not started). See attached screenshot.

Thanks.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Medium
status: Incomplete → Confirmed
affects: openerp-web → openobject-server
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

The issue seems to have been a race condition in the server's menu code leading to a corrupted list of menus being sent to the client.

This should be fixed in the trunk server as of revision <email address hidden> could you check whether you can still reproduce with the latest server trunk?

Changed in openobject-server:
status: In Progress → Fix Released
Revision history for this message
Gautam (gditerp) wrote :

Hi Xavier,

I'm unable to reproduce it the error now.

Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.