跳至內容
選單
此問題已被標幟
1 回覆
3200 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 22
11823
1
11月 19
14423
1
9月 19
7631
0
11月 15
5305
2
8月 23
2365