Hello Xavier, Thanks for your attention I installed your module and it works ok, in fact, that's exactly how i want mine to work. Im glad you understood me, I thought i wasnt explaining myself very well. Still, my problem is not resolved. The thing is, i'm using an inherited object and its view, and i think, there is the problem.
I have modified your module to reproduce the behavior. Could you check it and try to figure out where the problem is? Again, It works great in the gtk client. The problem is when using the web server Thanks in advanced for your help, this is driving me crazy 2011/11/25 Xavier (Open ERP) <[email protected]> > > It didn’t work. Any other idea? > > No, I still can't reproduce the issue. I built a very bare-bones test > module (see linked tgz) with a very simple object, a single form view > using the `invisible="context.get('hide_in_request',[])"` pattern and > two menu entries, one setting the context key and the other one not > setting it, and i still don't observe the issue: > > * If the key is not set (first menu item of the "Test" top-level menu), > the field appears > * if the key is set (second menu item of the "Test" top-level menu), the > field does not appear > > Observed behavior is logical and coherent with what I can observe on the > GTK client. > > Could you try to install this test module and see if you can reproduce > the issue there? And if you can't, try to alter it to reproduce the > behavior? > > ** Attachment added: "test_module.tgz" > > https://bugs.launchpad.net/openerp-web/+bug/890370/+attachment/2607983/+files/test_module.tgz > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/890370 > > Title: > error while trying to hide a field > > Status in OpenERP Web: > Incomplete > > Bug description: > Help please, > Im trying to hide a field. > <field name="survey_id" invisible="context.get('hide_in_request',[])"/> > It is supposed to work like this, I want it to display the field when > someone click menu "A", and not to display it when someone clicks menu "B". > (menu "A" and "B" goes to different views of the same object) > > This is working perfectly in the gtk client. why is it not working on > the web?? > > To manage notifications about this bug go to: > https://bugs.launchpad.net/openerp-web/+bug/890370/+subscriptions > ** Attachment added: "test_stuff.tar.gz" https://bugs.launchpad.net/bugs/890370/+attachment/2608202/+files/test_stuff.tar.gz -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to OpenERP Project Group. https://bugs.launchpad.net/bugs/890370 Title: error while trying to hide a field Status in OpenERP Web: Incomplete Bug description: Help please, Im trying to hide a field. <field name="survey_id" invisible="context.get('hide_in_request',[])"/> It is supposed to work like this, I want it to display the field when someone click menu "A", and not to display it when someone clicks menu "B". (menu "A" and "B" goes to different views of the same object) This is working perfectly in the gtk client. why is it not working on the web?? To manage notifications about this bug go to: https://bugs.launchpad.net/openerp-web/+bug/890370/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

