Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2720 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
tammik. 22
11185
1
marrask. 19
13822
1
syysk. 19
7111
0
marrask. 15
4807
2
elok. 23
1638