Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3226 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 22
11841
1
lis 19
14454
1
wrz 19
7640
0
lis 15
5311
2
sie 23
2392