stockpicking.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="report_picking_improvement" inherit_id="stock.report_picking">
  5. <xpath expr="//table[@t-if='not o.pack_operation_ids']//thead//tr//th" position="before">
  6. <th></th>
  7. </xpath>
  8. <xpath expr="//tr[@t-foreach='o.move_lines']" position="before">
  9. <t t-set="index" t-value="1"/>
  10. </xpath>
  11. <xpath expr="//tr[@t-foreach='o.move_lines']//td" position="before">
  12. <td>
  13. <span t-esc="index"/>
  14. <t t-set="index" t-value="index + 1"/>
  15. </td>
  16. </xpath>
  17. <xpath expr="//tr[@t-foreach='o.move_lines']" position="after">
  18. <tr>
  19. <td></td>
  20. <td></td>
  21. <td class="text-right">
  22. <span t-esc="sum(move.product_uom_qty for move in o.move_lines)"/>
  23. </td>
  24. <td></td>
  25. <td></td>
  26. </tr>
  27. </xpath>
  28. <xpath expr="//table[@t-if='o.pack_operation_ids']//thead//tr//th" position="before">
  29. <th></th>
  30. </xpath>
  31. <xpath expr="//tr[@t-foreach='o.pack_operation_ids']" position="before">
  32. <t t-set="index" t-value="1"/>
  33. </xpath>
  34. <xpath expr="//tr[@t-foreach='o.pack_operation_ids']//td" position="before">
  35. <td>
  36. <span t-esc="index"/>
  37. <t t-set="index" t-value="index + 1"/>
  38. </td>
  39. </xpath>
  40. <xpath expr="//tr[@t-foreach='o.pack_operation_ids']" position="after">
  41. <tr>
  42. <td></td>
  43. <td></td>
  44. <td class="text-right">
  45. <span t-esc="sum(pack_operation.product_qty for pack_operation in o.pack_operation_ids)"/>
  46. </td>
  47. <td></td>
  48. <td></td>
  49. </tr>
  50. </xpath>
  51. <xpath expr="//table[@t-if='o.pack_operation_ids']" position="after">
  52. <table class="table table-condensed">
  53. <thead>
  54. <tr>
  55. <th><strong>Note:</strong></th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <tr>
  60. <td><span t-field="o.note"/></td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. </xpath>
  65. </template>
  66. </data>
  67. </openerp>