Xml 隐藏标签(ODOO 12)

Xml 隐藏标签(ODOO 12),xml,odoo-12,Xml,Odoo 12,我正在处理odoo 12(python 3.6),我试图从product.template继承并在看板框中隐藏价格标签,只可能隐藏靠近它的字段(lst_price field),但标签保持不变。我尝试了以下代码: <xpath expr="//div[@name='tags']" position="attributes"> <attribute name="invisible">1</attribute> 请提供帮助您正在

我正在处理odoo 12(python 3.6),我试图从product.template继承并在看板框中隐藏价格标签,只可能隐藏靠近它的字段(lst_price field),但标签保持不变。我尝试了以下代码:

<xpath expr="//div[@name='tags']" position="attributes">
                <attribute name="invisible">1</attribute>


请提供帮助

您正在访问不同的标签,要以这种方式在li标签上执行应用操作

<xpath expr="//ul/li" position="">
    <!-- Perform Your Operation -->
</xpath>

在XPath上,div标记已经关闭。之后,使用新标记ul,然后使用li

谢谢