c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #36726
[Bug 885459] Re: page with tag invisible should be invisible
On 11/08/2011 11:18 AM, Ferdinand @ Camptocamp wrote:
> Hmm this worked in GTK for years
>
> <page string="invisible" attrs="{'invisible':[]}"/>
Unfortunately this is a case where you're abusing the system with a hack that works "by chance" due to the current implementation, and will bite you later if/when the implementation changes or is corrected.
The "attrs" attribute is meant for dynamic behaviors, with a domain-like expression based on the fields present on the view.
Using "[ ]" is not a dynamic domain at all, and "[('id', '=', 'id')]" is wrong too, and would not do what you think even if the 'id' field was really present in the view (it would compare the ID field with a static "id" string -> always false).
> what else do you suggest to create an invisible page ?
How about <page invisible="1" ... /> ?
This is the correct way to make a form element permanently/statically invisible, and it as always worked.
** Changed in: openerp-web
Importance: Low => Undecided
** Changed in: openerp-web
Status: New => Invalid
** Changed in: openerp-web
Assignee: OpenERP R&D Web Team (openerp-dev-web) => (unassigned)
--
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/885459
Title:
page with tag invisible should be invisible
Status in OpenERP Web:
Invalid
Bug description:
neither
<page string="invisible" attrs="{'invisible':[]}"/>
nor
<page string="invisible" attrs="{'invisible':[('id','=','id' )]}"/>
hide the page
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/885459/+subscriptions
References