You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
3.3 KiB
73 lines
3.3 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<!--Whatsapp message mail template of stock picking -->
|
|
<record id="stock_picking_whatsapp_template" model="mail.template">
|
|
<field name="name">Whatsapp Template for Delivery</field>
|
|
<field name="subject">Inventory Template</field>
|
|
<field name="model_id" ref="stock.model_stock_picking"/>
|
|
<field name="is_delivery_template">True</field>
|
|
<field name="body_html"><![CDATA[<div style="font-family: Ubuntu, Arial, Verdana, sans-serif; font-size: 12px;">
|
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
<div>
|
|
Hello *<t t-out="object.partner_id.name or ''"></t>*,
|
|
</div>
|
|
<div>
|
|
<t t-if="object.state in ('draft')">
|
|
We have received your order *<t t-out="object.name"></t>*. It will be shipped soon
|
|
<div>
|
|
Order details are as follows: <br>
|
|
<t t-foreach="object" t-as="each">
|
|
<t t-foreach="each.move_ids_without_package" t-as="id">
|
|
*Product: <t t-out="id.product_id.name"></t>* <br>
|
|
*Qty: <t t-out="id.product_uom_qty"></t>*<br>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="object.state in ('assigned')">
|
|
Your order *<t t-out="object.name"></t>* is ready. It will be shipped soon
|
|
<div>
|
|
Order details are as follows: <br>
|
|
<t t-foreach="object" t-as="each">
|
|
<t t-foreach="each.move_ids_without_package" t-as="id">
|
|
*Product: <t t-out="id.product_id.name"></t>* <br>
|
|
*Qty: <t t-out="id.product_uom_qty"></t>*<br>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="object.state in ('confirmed')">
|
|
Your order *<t t-out="object.name"></t>* is ready. It will be shipped soon
|
|
<div>
|
|
Order details are as follows: <br>
|
|
<t t-foreach="object" t-as="each">
|
|
<t t-foreach="each.move_ids_without_package" t-as="id">
|
|
*Product: <t t-out="id.product_id.name"></t>* <br>
|
|
*Qty: <t t-out="id.product_uom_qty"></t>*<br>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="object.state in ('done')">
|
|
Your order *<t t-out="object.name"></t>* is shipped.
|
|
<div>
|
|
Order details are as follows: <br>
|
|
<t t-foreach="object" t-as="each">
|
|
<t t-foreach="each.move_ids_without_package" t-as="id">
|
|
*Product: <t t-out="id.product_id.name"></t>* <br>
|
|
*Qty: <t t-out="id.quantity_done"></t>*<br>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
<div>
|
|
If you have any questions, please feel free to contact us.
|
|
</div>
|
|
</p>
|
|
]]>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|
|
|