summaryrefslogtreecommitdiff
path: root/addons/purchase_stock/data/mail_data.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/purchase_stock/data/mail_data.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/purchase_stock/data/mail_data.xml')
-rw-r--r--addons/purchase_stock/data/mail_data.xml32
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>