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.
175 lines
8.2 KiB
175 lines
8.2 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Quotation Request in home-->
|
|
<template id="portal_my_home_quotation_request"
|
|
name="Show Quotation Request"
|
|
inherit_id="portal.portal_my_home" priority="70">
|
|
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
|
|
<t t-call="portal.portal_docs_entry">
|
|
<t t-set="title">Quotation Request</t>
|
|
<t t-set="url" t-value="'/my/quotation_request'"/>
|
|
<t t-set="placeholder_count" t-value="'qtn_count'"/>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
<!-- Quotation Request portal_breadcrumbs-->
|
|
<template id="portal_my_home_menu_quotation"
|
|
name="Portal layout : quotation creation"
|
|
inherit_id="portal.portal_breadcrumbs"
|
|
priority="20">
|
|
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
|
<li t-if="page_name == 'rfq_p'"
|
|
t-attf-class="breadcrumb-item #{'active ' ''}">
|
|
<a t-attf-href="/my/quotation_request?{{ keep_query() }}">
|
|
Quotation Request
|
|
</a>
|
|
</li>
|
|
</xpath>
|
|
</template>
|
|
<!-- Quotation Requests form-->
|
|
<template id="portal_my_rfq_requests" name="My Orders">
|
|
<t t-call="portal.portal_layout">
|
|
<t t-set="breadcrumbs_searchbar" t-value="True"/>
|
|
<t t-call="portal.portal_searchbar">
|
|
<t t-set="title">Quotation Requests</t>
|
|
</t>
|
|
<form action="/my/send_request" method="post"
|
|
id="my_send_request"
|
|
enctype="multipart/form-data">
|
|
<input type="hidden" name="csrf_token"
|
|
t-att-value="request.csrf_token()"/>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md">
|
|
<label class="col-form-label"
|
|
for="name1">
|
|
Invoice Address
|
|
</label>
|
|
<select name="address1"
|
|
t-attf-class="">
|
|
<option selected="selected"
|
|
t-att-value="login_partner.id">
|
|
<t t-esc="login_partner.name"/>
|
|
</option>
|
|
<t t-foreach="partners" t-as="part">
|
|
<option t-att-value="part.id">
|
|
<t t-esc="part.name"/>
|
|
</option>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="col-md"
|
|
style="padding-left: 10px; margin-top: 10px;">
|
|
<label class="col-form-label"
|
|
for="name2">
|
|
Shipping Address
|
|
</label>
|
|
<select name="address2"
|
|
t-attf-class="">
|
|
<option selected="selected"
|
|
t-att-value="login_partner.id">
|
|
<t t-esc="login_partner.name"/>
|
|
</option>
|
|
<t t-foreach="partners" t-as="part">
|
|
<option t-att-value="part.id">
|
|
<t t-esc="part.name"/>
|
|
</option>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<table class="table table-bordered"
|
|
style="margin-top:10px;"
|
|
id="image_table">
|
|
<thead style="padding:10px;width:100px;">
|
|
<tr>
|
|
<th style="display: flex; justify-content: center; align-items: center;">
|
|
Product Image
|
|
</th>
|
|
<th style="justify-content: center; align-items: center;">
|
|
Product
|
|
</th>
|
|
<th style="justify-content: center; align-items: center;">
|
|
UoM
|
|
</th>
|
|
<th style="justify-content: center; align-items: center;">
|
|
Total Qty
|
|
</th>
|
|
<th style="justify-content: center; align-items: center;">
|
|
Action
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody"/>
|
|
</table>
|
|
<div>
|
|
<td>
|
|
<div class=""
|
|
style="padding-top:30px;">
|
|
<button type="button"
|
|
id="add_image"
|
|
class="btn btn-primary float-right mb32 "
|
|
style="background-color:#16771C;">
|
|
<span class="fa fa-plus"/>
|
|
Add Product
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm">
|
|
<textarea id="arett2" type="text"
|
|
class="form-control s_website_form_input"
|
|
name="description"
|
|
placeholder="Description.."/>
|
|
</div>
|
|
<div class="clearfix" style="padding-top:20px;">
|
|
<button type="submit" id="send_rfq_request"
|
|
class="btn btn-primary float-right mb32 send_rfq_request1"
|
|
style="background-color:#6495ED;">
|
|
Send Request
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</t>
|
|
</template>
|
|
<!-- Success message template-->
|
|
<record id="thanks" model="website.page">
|
|
<field name="name">Thanks</field>
|
|
<field name="type">qweb</field>
|
|
<field name="url">/ticket-thanks</field>
|
|
<field name="website_published">True</field>
|
|
<field name="key">quotation.thanks</field>
|
|
<field name="arch" type="xml">
|
|
<t name="Thanks" t-name="helpdesk_ticket.thanks">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="container">
|
|
<h1>Thank You</h1>
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<div class="alert alert-success"
|
|
role="status">
|
|
Sucess! Quotation
|
|
<t t-esc="sale_order"/>
|
|
created successfully.
|
|
<a style="float: right; margin-top: -7px;"
|
|
t-attf-href="/my/quotation_request">
|
|
<button type="button"
|
|
name="button_cancel"
|
|
class="btn btn-primary">
|
|
Back
|
|
</button>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|