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.
65 lines
2.6 KiB
65 lines
2.6 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Inherited template to add portal menu for my claims-->
|
|
<template id="portal_my_home_claim" name="My Claims"
|
|
customize_show="True" inherit_id="portal.portal_my_home">
|
|
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
|
|
<t t-call="portal.portal_docs_entry">
|
|
<t t-set="title">My Claims</t>
|
|
<t t-set="url"
|
|
t-value="'/my/claims'"/>
|
|
<t t-set="placeholder_count" t-value="'claim_count'"/>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
<!-- Template for adding the table of claim data records in the portal -->
|
|
<template id="portal_warranty_claims" name="claims">
|
|
<t t-call="portal.portal_layout">
|
|
<t t-call="portal.portal_searchbar">
|
|
<t t-set="page_name">claim_count</t>
|
|
<t t-set="title"/>
|
|
</t>
|
|
<t t-call="portal.portal_table">
|
|
<thead>
|
|
<tr class="active">
|
|
<th class="text-muted">Customer</th>
|
|
<th class="text-muted">Sale Order</th>
|
|
<th class="text-muted">Product</th>
|
|
<th class="text-muted">Status</th>
|
|
</tr>
|
|
</thead>
|
|
<t t-foreach="claim_data" t-as="value">
|
|
<tr>
|
|
<td class="text-muted">
|
|
<span t-esc="value['customer_id']"/>
|
|
</td>
|
|
<td class="text-muted">
|
|
<span t-esc="value['sale_order_id']"/>
|
|
</td>
|
|
<td class="text-muted">
|
|
<span t-esc="value['product_id']"/>
|
|
</td>
|
|
<td class="text-muted">
|
|
<span t-esc="value['status']"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
<!-- Template to add bread crumbs-->
|
|
<template id="portal_my_home_menu_claims"
|
|
name="Portal layout: claims menu entries"
|
|
inherit_id="portal.portal_breadcrumbs" priority="20">
|
|
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
|
<t t-set="variable" t-value="1"/>
|
|
<t t-if="variable == 1">
|
|
<li>
|
|
<a t-attf-href="/my/claims?{{ keep_query() }}">/ Warranty
|
|
Claims
|
|
</a>
|
|
</li>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|