← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 705312] Re: Sometimes, when you click on an item in a tree view, you get a Menu object

 

Hello everyone,

      I want to add some more details, which may lead us to solution.
      @xmo,
             When we run webclient behind proxy
             When we click on any application menu (say 'Accounting'), it will load all its menu (left accordian) requesting SERVER-PATH/openerp/tree/data.
	    And if some (one or more) of these requests SERVER-PATH/openerp/tree/data is failed with response `502 Bad Gateway error`,
             then due to this request fail,the <li id="content_PARENT_MENU" class="accordion-content">, where PARENT_MENU is the root item for which request fails
             a hidden <form> is injected into the DOM, Which contains some hiddens (may be grom screen widget!) _terp_model = 'ir.ui.menu', _terp_domain = '[(parent_id, '=', PARENT_MENU_ID)]', _terp_context, _terp_view etc.(this <form> injection will be performed for each request which fails in that menu list)

             So when, user click on any list item in search-view, DOM operation will get _terp_model's value as ir.ui.menu, which will lead to ir.ui.menu form.
			 
             I have tried to fix this issue with following apache settings:
             Timeout 5400
	     ProxyTimeout 5400

			 Note: 1. This situation will also produce search bug, you will not be able to search on any field other then name!(because name field is avaliable in ir.ui.menu), as model passed in /openerp/search/eval_domain_filter is 'ir.ui.menu'.
			 2. I observed error mostly occurs when Application Menu has large number if menus.

         @Xavier ALT, your trace helped me to found the cause, thank
you.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/705312

Title:
  Sometimes, when you click on an item in a tree view, you get a Menu
  object

Status in OpenERP Web Client:
  Confirmed

Bug description:
  I used the French language when this happenned. I wouldn't reproduced
  it with english language.

  Administration -> Modules -> Modules

  Then, click on a module. I got what is show on the screen after I
  clicked on a module. Here the URL:
  http://erp6test.we2bs.com/openerp/menu?active=3#url=%2Fopenerp%2Fform%2Fview%3Fmodel%3Dir.ui.menu%26id%3D133%26ids%3D%26view_ids%3D%255BFalse%252C%2520False%255D%26view_mode%3D%255Bu%2527tree%2527%252C%2520u%2527form%2527%255D%26view_type%3Dtree%26domain%3D%255B%28%2527parent_id%2527%252C%2520%2527%253D%2527%252C%252032%29%255D%26context%3D%257B%2527lang%2527%253A%2520u%2527fr_FR%2527%252C%2520%2527client%2527%253A%2520%2527web%2527%252C%2520%2527tz%2527%253A%2520False%252C%2520%2527section_id%2527%253A%2520False%257D%26offset%3D0%26limit%3D20%26count%3D169%26search_domain%3D%255B%255D%26filter_domain%3D%255B%255D%26notebook_tab%3D0

  It happend since a moment, and I don't know why. Simetimes it works,
  sometime it doesn't. If can't reproduce the bug, try to restart your
  browser, and directly go the modules list.

  Note: It happend will other tree views, not only modules.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/705312/+subscriptions


References