openerp - Odoo xpath roat -




this code original report. goal put my_field_name before product. how can reach xpath.

            <table class="table table-condensed" t-if="o.pack_operation_ids">                       <t t-set="has_barcode" t-value="any([pack_operation.product_id , pack_operation.product_id.sudo().barcode or pack_operation.package_id 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">  ------ code goes here ------ </xpath 

please use above code reference.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -