Skip to Content
मेन्यू
This question has been flagged
1 Reply
3207 Views

Hello,


I try to simply hide some elements in my application with the xpath like this :






display:none!important



display:none!important



Interventions




It doesn't work but when i replace them by a replace it work.
But when i use the replace, on update addon there are an error with the located parent view (my local work correctly).


Thank's in advance.

Avatar
Discard
Best Answer

Hi,

To hide a <t> element using Xpath in Odoo, you can try using the position() function along with the replace attribute in the XPath expression.

<xpath expr="//t[position()=1]" position="replace">

             <t style="display:none!important"/>

</xpath>

Regards

Avatar
Discard
Related Posts Replies Views Activity
1
जन॰ 22
11828
1
नव॰ 19
14433
1
सित॰ 19
7631
0
नव॰ 15
5306
2
अग॰ 23
2371