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.
 
 
 
 
 

61 lines
3.3 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="website_delivery_slot" inherit_id="website_sale.cart_lines">
<xpath expr="//td[hasclass('td-product_name')]" position="inside">
<!-- Checking if delivery slot is enabled -->
<t t-set="delivery_slot"
t-value="request.env['ir.config_parameter'].sudo().get_param('delivery_slot.enable_delivery_date')"/>
<t t-if="delivery_slot">
<div class="delivery_slot_div">
<div class="form-group col-12 s_website_form_field s_website_form_required"
data-type="char" data-name="Field" id="date_div">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label"
style="width: 200px"
for="date">
<span class="s_website_form_label_content">
Delivery Date
</span>
</label>
<div class="col-sm">
<input id="date"
type="date"
class="form-control link-style"
placeholder="Delivery Date"
name="date" required="1"
t-att-data-line-id="line.id"
t-att-data-product-id="line.product_id.id"/>
</div>
</div>
</div>
<div class="form-group col-12 s_website_form_field s_website_form_required"
data-type="char" data-name="Field" id="divs">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label"
style="width: 200px"
for="search">
<span class="s_website_form_label_content">
Delivery Slot
</span>
</label>
<div class="col-sm">
<select name="slot_id" id="slot_id"
class="form-control link-style"
t-att-data-line-id="line.id"
t-att-data-product-id="line.product_id.id">
<option value=""> </option>
<t t-foreach="slots" t-as="slot">
<option t-att-value="slot.id">
<t t-esc="slot.name"
t-att-value="slot.id"/>
</option>
</t>
</select>
</div>
</div>
</div>
</div>
</t>
</xpath>
</template>
</odoo>