diff options
Diffstat (limited to 'addons/purchase_stock/data/mail_data.xml')
| -rw-r--r-- | addons/purchase_stock/data/mail_data.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/addons/purchase_stock/data/mail_data.xml b/addons/purchase_stock/data/mail_data.xml new file mode 100644 index 00000000..849e04af --- /dev/null +++ b/addons/purchase_stock/data/mail_data.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + + <template id="exception_on_po"> + <div> + Exception(s) occurred on the purchase order(s): + <t t-foreach="purchase_order_ids" t-as="purchase_order"> + <a href="#" data-oe-model="purchase.order" t-att-data-oe-id="purchase_order.id"><t t-esc="purchase_order.name"/></a>. + </t> + Manual actions may be needed. + <div class="mt16"> + <p>Exception(s):</p> + <ul t-foreach="order_exceptions" t-as="exception"> + <li> + <t t-set="order_line" t-value="exception[0]"/> + <t t-set="new_qty" t-value="exception[1][0]"/> + <t t-set="old_qty" t-value="exception[1][1]"/> + <t t-esc="new_qty"/> <t t-esc="order_line.product_uom.name"/> of <t t-esc="order_line.product_id.name"/> + ordered instead of <t t-esc="old_qty"/> <t t-esc="order_line.product_uom.name"/> + </li> + </ul> + </div> + <div class="mt16" t-if="impacted_pickings"> + <p>Next transfer(s) impacted:</p> + <ul t-foreach="impacted_pickings" t-as="picking"> + <li><a href="#" data-oe-model="stock.picking" t-att-data-oe-id="picking.id"><t t-esc="picking.name"/></a></li> + </ul> + </div> + </div> + </template> + +</odoo> |
