Xpath 奥多罗特

Xpath 奥多罗特,xpath,openerp,Xpath,Openerp,这是原始报告中的代码。我的目标是将我的字段\名称放在产品之前。如何使用xpath访问它 <table class="table table-condensed" t-if="o.pack_operation_ids"> <t t-set="has_barcode" t-value="any([pack_operation.product_id and pack_operation.product_id.sudo

这是原始报告中的代码。我的目标是将我的字段\名称放在产品之前。如何使用xpath访问它

            <table class="table table-condensed" t-if="o.pack_operation_ids">
                      <t t-set="has_barcode" t-value="any([pack_operation.product_id and pack_operation.product_id.sudo().barcode or pack_operation.package_id for pack_operation in o.pack_operation_ids])"/>
                      <t t-set="has_serial_number" t-value="o.pack_operation_ids.filtered('pack_lot_ids')" groups="stock.group_production_lot"/>
                      <thead>
                        <tr>
                            <th><strong>Product</strong></th>
                            <th class="text-right"><strong>Quantity</strong></th>
                            <t t-if="o.picking_type_id.code != 'incoming'"><th><strong>Source</strong></th></t>
                            <th t-if="has_barcode" class="text-center">
                                <strong>Barcode</strong>
                            </th>
                            <th t-if="has_serial_number">
                                <strong>Lot/Serial Number</strong>
                            </th>
                            <t t-if="o.picking_type_id.code != 'outgoing'"><th><strong>Destination</strong></th></t>
                        </tr>
                      </thead>
                      <tbody>

产品
数量
来源
条形码
批次/序列号
目的地

------你的密码在这里------
<xpath expr="//table[@t-if='o.pack_operation_ids']/thead/tr/th[1]" position="before">
 ------ your code goes here ------
</xpath