Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3196 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Change button call using attributes แก้ไขแล้ว
1
ม.ค. 22
11823
1
พ.ย. 19
14421
1
ก.ย. 19
7630
0
พ.ย. 15
5305
2
ส.ค. 23
2365