Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3192 Представления

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 Ответы Просмотры Активность
1
янв. 22
11822
1
нояб. 19
14413
1
сент. 19
7623
0
нояб. 15
5304
2
авг. 23
2359