【发布时间】:2017-03-17 07:03:39
【问题描述】:
我需要替换视图中的一些字段、按钮和标签。现在我正在使用下面的 Xpath 来实现它。
<xpath expr='//field[@name="use_timesheets"]' position="replace"> </xpath>
<xpath expr='//button[@class="oe_inline oe_stat_button"]' position="replace"></xpath>
<xpath expr="//field[@name = 'template_id']" position="replace"></xpath>
是否可以对多个字段使用单个 Xpath,例如:
<xpath expr="//field[@name in ['template_id','name']" position="replace"></xpath>
有可能吗?
【问题讨论】:
标签: python-2.7 xpath openerp odoo-8