12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <template id="report_picking_improvement" inherit_id="stock.report_picking">
- <xpath expr="//table[@t-if='not o.pack_operation_ids']//thead//tr//th" position="before">
- <th></th>
- </xpath>
- <xpath expr="//tr[@t-foreach='o.move_lines']" position="before">
- <t t-set="index" t-value="1"/>
- </xpath>
- <xpath expr="//tr[@t-foreach='o.move_lines']//td" position="before">
- <td>
- <span t-esc="index"/>
- <t t-set="index" t-value="index + 1"/>
- </td>
- </xpath>
- <xpath expr="//tr[@t-foreach='o.move_lines']" position="after">
- <tr>
- <td></td>
- <td></td>
- <td class="text-right">
- <span t-esc="sum(move.product_uom_qty for move in o.move_lines)"/>
- </td>
- <td></td>
- <td></td>
- </tr>
- </xpath>
- <xpath expr="//table[@t-if='o.pack_operation_ids']//thead//tr//th" position="before">
- <th></th>
- </xpath>
- <xpath expr="//tr[@t-foreach='o.pack_operation_ids']" position="before">
- <t t-set="index" t-value="1"/>
- </xpath>
- <xpath expr="//tr[@t-foreach='o.pack_operation_ids']//td" position="before">
- <td>
- <span t-esc="index"/>
- <t t-set="index" t-value="index + 1"/>
- </td>
- </xpath>
- <xpath expr="//tr[@t-foreach='o.pack_operation_ids']" position="after">
- <tr>
- <td></td>
- <td></td>
- <td class="text-right">
- <span t-esc="sum(pack_operation.product_qty for pack_operation in o.pack_operation_ids)"/>
- </td>
- <td></td>
- <td></td>
- </tr>
- </xpath>
- <xpath expr="//table[@t-if='o.pack_operation_ids']" position="after">
- <table class="table table-condensed">
- <thead>
- <tr>
- <th><strong>Note:</strong></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><span t-field="o.note"/></td>
- </tr>
- </tbody>
- </table>
- </xpath>
- </template>
- </data>
- </openerp>
|