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.
 
 
 
 
 

56 lines
2.4 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Template for adding the pre bookings in the portal my home-->
<template id="portal_my_home_pre_bookings"
name="portal_my_home_inherit_website_pre_booking"
inherit_id="portal.portal_my_home" customize_show="True" >
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<t t-call="portal.portal_docs_entry">
<t t-set="icon" t-value="'/sale/static/src/img/bag.svg'"/>
<t t-set="title">Pre Booking</t>
<t t-set="url" t-value="'/my/pre_bookings'"/>
<t t-set="text">Pre-Booked Orders.</t>
<t t-set="placeholder_count" t-value="'pre_bookings_count'"/>
</t>
</xpath>
</template>
<!-- Template for the breadcrumbs for the pre-booking-->
<template id="portal_my_home_menu_pre_bookings"
name="Portal layout : pre bookings menu entries"
inherit_id="portal.portal_breadcrumbs" priority="65">
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
<li t-if="page_name == 'pre_booking'"
class="breadcrumb-item active">
<span>Pre Booking</span>
</li>
</xpath>
</template>
<!-- List of pre bookings to show in the portal table-->
<template id="portal_my_pre_bookings" name="My Pre Bookings">
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Pre Bookings</t>
</t>
<t t-if="pre_bookings" t-call="portal.portal_table">
<thead>
<tr class="active">
<th>Reference</th>
<th>Product</th>
<th>Booking Date</th>
<th>state</th>
</tr>
</thead>
<t t-foreach="pre_bookings" t-as="pre_booking">
<tr>
<td><span t-field="pre_booking.reference"/></td>
<td><span t-field="pre_booking.product_id.name"/></td>
<td><span t-field="pre_booking.booking_date"/></td>
<td><span t-field="pre_booking.state"/></td>
</tr>
</t>
</t>
</t>
</template>
</odoo>