| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<template id="exception_purchase_on_sale_quantity_decreased" name="Message: Alert on purchase orders when ordered quantity decreased on Sales Orders"> |
| 5 |
<div> |
| 6 |
<p> |
| 7 |
Exception(s) occurred on the sale order(s): |
| 8 |
<t t-foreach="sale_orders" t-as="sale_order"> |
| 9 |
<a href="#" data-oe-model="sale.order" t-att-data-oe-id="sale_order.id"><t t-esc="sale_order.name"/></a>. |
| 10 |
</t> |
| 11 |
Manual actions may be needed. |
| 12 |
</p> |
| 13 |
<div class="mt16"> |
| 14 |
<p>Exception(s):</p> |
| 15 |
<ul t-foreach="sale_lines" t-as="sale_line"> |
| 16 |
<li> |
| 17 |
<t t-set="new_qty" t-value="sale_line.product_uom_qty"/> |
| 18 |
<t t-set="old_qty" t-value="origin_values.get(sale_line.id, 0.0)"/> |
| 19 |
|
| 20 |
<a href="#" data-oe-model="sale.order" t-att-data-oe-id="sale_line.order_id.id"><t t-esc="sale_line.order_id.name"/></a>: |
| 21 |
<t t-esc="new_qty"/> <t t-esc="sale_line.product_uom_id.name"/> of <t t-esc="sale_line.product_id.name"/> ordered instead of <t t-esc="old_qty"/> <t t-esc="sale_line.product_uom_id.name"/> |
| 22 |
</li> |
| 23 |
</ul> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
</template> |
| 27 |
|
| 28 |
<template id="exception_purchase_on_sale_cancellation" name="Message: Alert on purchase orders when sales orders are cancelled"> |
| 29 |
<div> |
| 30 |
<p> |
| 31 |
Exception(s) occurred on the sale order(s): |
| 32 |
<t t-foreach="sale_orders" t-as="sale_order"> |
| 33 |
<a href="#" data-oe-model="sale.order" t-att-data-oe-id="sale_order.id"><t t-esc="sale_order.name"/></a> |
| 34 |
</t>. |
| 35 |
Manual actions may be needed. |
| 36 |
</p> |
| 37 |
<div class="mt16"> |
| 38 |
<p>Exception(s):</p> |
| 39 |
<ul t-foreach="sale_order_lines" t-as="sale_line"> |
| 40 |
<li> |
| 41 |
<a href="#" data-oe-model="sale.order" t-att-data-oe-id="sale_line.order_id.id"><t t-esc="sale_line.order_id.name"/></a>: <t t-esc="sale_line.product_uom_qty"/> <t t-esc="sale_line.product_uom_id.name"/> of <t t-esc="sale_line.product_id.name"/> cancelled |
| 42 |
</li> |
| 43 |
</ul> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
</template> |
| 47 |
|
| 48 |
<template id="exception_sale_on_purchase_cancellation" name="Message: Alert on sale orders when purchase orders are cancelled"> |
| 49 |
<div> |
| 50 |
<p> |
| 51 |
Exception(s) occurred on the purchase order(s): |
| 52 |
<t t-foreach="purchase_orders" t-as="purchase_order"> |
| 53 |
<a href="#" data-oe-model="purchase.order" t-att-data-oe-id="purchase_order.id"><t t-esc="purchase_order.name"/></a> |
| 54 |
</t>. |
| 55 |
Manual actions may be needed. |
| 56 |
</p> |
| 57 |
<div class="mt16"> |
| 58 |
<p>Exception(s):</p> |
| 59 |
<ul t-foreach="purchase_order_lines" t-as="purchase_line"> |
| 60 |
<li> |
| 61 |
<a href="#" data-oe-model="purchase.order" t-att-data-oe-id="purchase_line.order_id.id"><t t-esc="purchase_line.order_id.name"/></a>: <t t-esc="purchase_line.product_qty"/> <t t-esc="purchase_line.product_uom_id.name"/> of <t t-esc="purchase_line.product_id.name"/> cancelled |
| 62 |
</li> |
| 63 |
</ul> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
</template> |
| 67 |
|
| 68 |
</odoo> |