Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3371 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jan 22
11993
1
Nov 19
14634
1
Sep 19
7793
0
Nov 15
5402
2
Agu 23
2598