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.
38 lines
1.7 KiB
38 lines
1.7 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Inherited Template and Added New TD -->
|
|
<template id="click_and_collect" name="Click And Collect"
|
|
inherit_id="website_sale.cart_lines">
|
|
<xpath expr="//th[hasclass('td-price')]" position="after">
|
|
<th>
|
|
<span>Collect</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//td[hasclass('td-price')]" position="after">
|
|
<td class="text-center oe_inline click_and_collect_td">
|
|
<input type="checkbox" name="click_and_collect"
|
|
id='is_click_and_collect'
|
|
t-att-checked="line.is_click_and_collect"
|
|
class="form-check-input clickandecollect"
|
|
t-att-data-id="line.id" t-on-click="click_btn"/>
|
|
|
|
</td>
|
|
<td class="text-center click_and_collect_td oe_session d-none">
|
|
<t t-set="get_pos_session"
|
|
t-value="request.env['pos.config'].sudo().search([])"/>
|
|
<select class="form-select session_values"
|
|
name="pos_session">
|
|
<option value="select">Select</option>
|
|
<option t-foreach="get_pos_session" t-as="session"
|
|
t-att-value="session.id" t-key="session"
|
|
class="session_values">
|
|
<t t-esc="session.name"/>,
|
|
<t t-esc="session.street"/>,
|
|
<t t-esc="session.city"/>,
|
|
<t t-esc="session.state_id.name"/>
|
|
</option>
|
|
</select>
|
|
</td>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|