openerp - make a page tab dynamic invisible with domain in inherited view -
i try make page tab in view dynamicly visible based on value of field of model. field availble on screen.
i need change inherited view
i tried:
<xpath expr="//page[@string='functions']" position="attributes"> <attribute name="invisible">[('org_type_id','!=',0)]</attribute> </xpath>
but page tab function hidden. org_type_id 0.
is not possible use xpath add dynamic invisible attritbute?
you totally going on wrong way job.
just can the following way job thing this.
<xpath expr="//page[@string='functions']" position="attributes"> <attribute name="attrs">{'invisible':[('org_type_id','!=',0)]}</attribute>
i hope should helpful :)
Comments
Post a Comment