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.
31 lines
1.5 KiB
31 lines
1.5 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Add delivery date on website products screen-->
|
|
<template id="ecom_delivery_date" inherit_id="website_sale.products"
|
|
active="False" customize_show="True"
|
|
name="Sow Deliver Date">
|
|
<xpath expr="//tbody/tr/t/t/td/div" position="before">
|
|
<t t-if="int(product.sale_delay) > 0">
|
|
<div><b>Delivery with in <span t-esc="int(td_product['product'].sale_delay)"/><span> days</span></b></div>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
<!-- Add delivery date on website product details screen-->
|
|
<template id="ecom_delivery_date_product" active="False" customize_show="True"
|
|
name="Sow Deliver Date" inherit_id="website_sale.product">
|
|
<xpath expr="//div[@id='product_details']" position="inside">
|
|
<t t-if="int(product.sale_delay) > 0">
|
|
<div><b>Delivery with in <span t-esc="int(product.sale_delay)"/><span> days</span></b></div>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
<!-- Add delivery date on website cart screen-->
|
|
<template id="cart_delivery_date" active="False" customize_show="True"
|
|
name="Cart Delivery Date" inherit_id="website_sale.cart_lines">
|
|
<xpath expr="//table[@id='cart_products']/tbody/t/tr/td[3]" position="inside">
|
|
<t t-if="int(line.product_id.sale_delay) > 0">
|
|
<div><i>Delivery with in <span t-esc="int(line.product_id.sale_delay)"/><span> days</span></i></div>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|