mail_templates.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="exception_on_mo">
  4. <div class="alert alert-warning" role="alert">
  5. Exception(s) occurred on the manufacturing order(s):
  6. <a href="#" data-oe-model="mrp.production" t-att-data-oe-id="production_order.id"><t t-esc="production_order.name"/></a>.
  7. Manual actions may be needed.
  8. <div class="mt16">
  9. <p>Exception(s):</p>
  10. <ul t-foreach="order_exceptions.items()" t-as="order_exception">
  11. <li>
  12. <t t-set="move_raw_id" t-value="order_exception[0]"/>
  13. <t t-set="exception" t-value="order_exception[1]"/>
  14. <t t-set="order" t-value="exception[0]"/>
  15. <t t-set="new_qty" t-value="exception[1][0]"/>
  16. <t t-set="old_qty" t-value="exception[1][1]"/>
  17. <a href="#" data-oe-model="mrp.production" t-att-data-oe-id="production_order.id"><t t-esc="production_order.name"/></a>:
  18. <t t-esc="new_qty"/> <t t-esc="move_raw_id.product_uom.name"/> of <t t-esc="move_raw_id.product_id.name"/>
  19. <t t-if="cancel">
  20. cancelled
  21. </t>
  22. <t t-if="not cancel">
  23. ordered instead of <t t-esc="old_qty"/> <t t-esc="move_raw_id.product_uom.name"/>
  24. </t>
  25. </li>
  26. </ul>
  27. </div>
  28. <div class="mt16" t-if="not cancel and impacted_pickings">
  29. <p>Impacted Transfer(s):</p>
  30. <ul t-foreach="impacted_pickings" t-as="picking">
  31. <li><a href="#" data-oe-model="stock.picking" t-att-data-oe-id="picking.id"><t t-esc="picking.name"/></a></li>
  32. </ul>
  33. </div>
  34. </div>
  35. </template>
  36. <template id="production_message">
  37. <t t-if="move.move_id.raw_material_production_id">
  38. <t t-set="message">Consumed</t>
  39. </t>
  40. <t t-if="move.move_id.production_id">
  41. <t t-set="message">Produced</t>
  42. </t>
  43. <strong><t t-esc="message"/> quantity has been updated.</strong>
  44. </template>
  45. <template id="track_production_move_template">
  46. <div>
  47. <t t-call="mrp.production_message"/>
  48. <t t-call="stock.message_body"/>
  49. </div>
  50. </template>
  51. </odoo>