2013-12-02 12:34:37 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2014-01-01 15:47:54 +00:00
|
|
|
<template id="pricing" name="Price">
|
|
|
|
<section id="quote">
|
2013-12-09 13:10:15 +00:00
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2014-01-01 15:47:54 +00:00
|
|
|
<th>Products</th>
|
|
|
|
<th>Tax</th>
|
2013-12-19 10:12:10 +00:00
|
|
|
<th>Quantity</th>
|
2014-01-01 15:47:54 +00:00
|
|
|
<th>Unit Price</th>
|
|
|
|
<th>Price</th>
|
2013-12-09 13:10:15 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2014-01-01 15:47:54 +00:00
|
|
|
<tr t-foreach="quotation.order_line" t-as="line">
|
|
|
|
<td>
|
|
|
|
<div t-field="line.name"/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon">
|
|
|
|
<a t-href="./update_line/#{ line.id }/?order_id=#{ quotation.id }&remove=True" class="mb8 js_update_line_json">
|
|
|
|
<span class="fa fa-minus"/>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<input type="text" class="js_quantity form-control" t-att-data-id="line.id" t-att-value="line.product_uom_qty"/>
|
|
|
|
<span class="input-group-addon">
|
|
|
|
<a t-href="./update_line/#{ line.id }/?order_id=#{ quotation.id }" class="mb8 js_update_line_json">
|
|
|
|
<span class="fa fa-plus"/>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<!-- if discount, display it striked -->
|
|
|
|
<div t-field="line.price_unit" t-field-options='{"widget": "monetary","display_currency": "website.pricelist_id.currency_id"}'/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div t-field="line.price_subtotal" t-field-options='{"widget": "monetary", "display_currency": "website.pricelist_id.currency_id"}'/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a t-href="./update_line/#{ line.id }/?order_id=#{ quotation.id }&unlink=True" class="mb8 js_update_line_json pull-right">
|
|
|
|
<span class="fa fa-trash-o"></span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-12-09 13:10:15 +00:00
|
|
|
<tr>
|
2014-01-01 15:47:54 +00:00
|
|
|
<td></td>
|
|
|
|
<td></td>
|
2013-12-09 13:10:15 +00:00
|
|
|
<td><h3>Total</h3></td>
|
2013-12-10 10:44:42 +00:00
|
|
|
<td class="text-left" colspan="2">
|
2013-12-09 13:10:15 +00:00
|
|
|
<h3>
|
2014-01-01 15:47:54 +00:00
|
|
|
<strong data-id="total_amount" t-field="quotation.amount_total" t-field-options='{"widget": "monetary","display_currency": "website.pricelist_id.currency_id"}'/>
|
2013-12-09 13:10:15 +00:00
|
|
|
</h3>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-12-06 10:43:39 +00:00
|
|
|
</section>
|
|
|
|
</template>
|
2014-01-01 15:47:54 +00:00
|
|
|
|
2013-12-06 10:43:39 +00:00
|
|
|
<template id="quote_status">
|
2014-01-01 15:47:54 +00:00
|
|
|
<div class="btn-group btn-group-lg">
|
|
|
|
<a class="btn btn-success fa fa-check" type="submit" t-if="quotation.state != 'manual' and quotation.state != 'cancel'" t-href="/quote/#{ quotation.id }/accept">
|
|
|
|
Accept
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-info fa fa-comment" type="submit" t-if="quotation.state != 'manual' and quotation.state != 'cancel'" href="#chat">
|
|
|
|
Send us a Feedback
|
|
|
|
<sup class="label label-info"><t t-esc="message"/></sup>
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-danger fa fa-times" data-toggle="modal" data-target="#modeldecline">
|
|
|
|
Refuse
|
|
|
|
</a>
|
2013-12-06 10:43:39 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2014-01-01 15:47:54 +00:00
|
|
|
|
2013-12-06 10:43:39 +00:00
|
|
|
<template id="chatter">
|
2013-12-20 05:46:36 +00:00
|
|
|
<div id="chat" class="panel panel-default">
|
2013-12-06 10:43:39 +00:00
|
|
|
<div class="panel-heading">
|
2013-12-19 10:12:10 +00:00
|
|
|
<h3 class="panel-title">
|
|
|
|
<i class="fa fa-comment fa-flip-horizontal"></i> Recent Comments
|
|
|
|
</h3>
|
2013-12-06 10:43:39 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<ul class="list-group">
|
|
|
|
<t t-foreach="quotation.message_ids" t-as="message">
|
2013-12-18 12:55:59 +00:00
|
|
|
<t t-if="message.subtype_id.name == 'Sales Order Confirmed' or message.subtype_id.name == 'Discussions'" >
|
2013-12-16 05:24:51 +00:00
|
|
|
<li class="list-group-item">
|
|
|
|
<div class="row">
|
2013-12-16 13:23:46 +00:00
|
|
|
<div class="col-xs-2 col-md-1" t-if="message.author_id.image_small">
|
2013-12-16 05:24:51 +00:00
|
|
|
<img t-att-src="'data:image/png;base64,' + message.author_id.image_small" class="img-circle img-responsive" alt="" /></div>
|
|
|
|
<div class="col-xs-10 col-md-11">
|
|
|
|
<div>
|
|
|
|
<a href="http://www.jquery2dotnet.com/2013/10/google-style-login-page-desing-usign.html"/>
|
|
|
|
<t t-raw="message.body"/>
|
|
|
|
<div class="mic-info">
|
|
|
|
By: <a href="#"><t t-esc="message.author_id.name"/></a> on <t t-esc="message.date"/>
|
2013-12-02 12:34:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-12-16 05:24:51 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
2013-12-18 12:55:59 +00:00
|
|
|
</t>
|
2013-12-06 10:43:39 +00:00
|
|
|
</t>
|
|
|
|
</ul>
|
2013-12-02 12:34:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-12-12 11:50:25 +00:00
|
|
|
<form id="post" accept-charset="UTF-8" method="POST" t-att-action="'/quote/%%s/post#post' %% quotation.id">
|
2013-12-06 10:43:39 +00:00
|
|
|
<textarea rows="3" id="new_message" name="new_message" placeholder="Your Comment....." class="form-control span7"> </textarea>
|
2013-12-12 11:50:25 +00:00
|
|
|
<button type="submit" t-att-id="quotation.id" class="btn btn-info">Post your Comment</button>
|
2013-12-06 10:43:39 +00:00
|
|
|
</form>
|
|
|
|
</template>
|
|
|
|
<template id="so_quotation" name="Product Quotation">
|
2013-12-19 05:36:48 +00:00
|
|
|
<t t-call="website.layout">
|
2013-12-20 05:46:36 +00:00
|
|
|
<t t-set="head">
|
|
|
|
<script type="text/javascript" src="/website_sale_quote/static/src/js/sale_quote.js"></script>
|
|
|
|
<t t-raw="head or ''"/>
|
|
|
|
</t>
|
2013-12-06 10:43:39 +00:00
|
|
|
<div class="col-xs-12 col-md-8 tab-content">
|
|
|
|
<t t-call="website_sale_quote.quote_status"/>
|
2013-12-19 10:12:10 +00:00
|
|
|
<div class="modal fade" id="modeldecline" role="dialog" aria-hidden="true">
|
2013-12-18 12:55:59 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
2013-12-19 10:12:10 +00:00
|
|
|
<h4 class="modal-title">Reason</h4>
|
2013-12-18 12:55:59 +00:00
|
|
|
</div>
|
|
|
|
<form id="post" accept-charset="UTF-8" method="POST" t-att-action="'/quote/%%s/post#post' %% (quotation.id)">
|
|
|
|
<div class="modal-body">
|
|
|
|
<textarea rows="3" id="decline_message" name="decline_message" placeholder="Your Comment....." class="form-control span7"> </textarea>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
<button type="submit" t-att-id="quotation.id" class="btn btn-info">Post</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-12-19 10:12:10 +00:00
|
|
|
<section id="introduction11" class="tab-pane active" t-field="quotation.website_description">
|
2013-12-06 10:43:39 +00:00
|
|
|
</section>
|
|
|
|
<t t-foreach="quotation.order_line" t-as="line">
|
2013-12-19 10:12:10 +00:00
|
|
|
<section class="tab-pane" t-att-id="line.id">
|
2013-12-06 10:43:39 +00:00
|
|
|
<div t-field="line.website_description" class="oe_structure"/>
|
|
|
|
</section>
|
|
|
|
</t>
|
|
|
|
<t t-call="website_sale_quote.pricing"/>
|
2013-12-16 05:24:51 +00:00
|
|
|
<t t-call="website_sale_quote.terms_and_conditions"/>
|
2013-12-10 10:44:42 +00:00
|
|
|
<t t-call="website_sale_quote.product_recommendation"/>
|
2013-12-06 10:43:39 +00:00
|
|
|
<t t-call="website_sale_quote.chatter"/>
|
|
|
|
</div>
|
2013-12-19 10:12:10 +00:00
|
|
|
<div class="col-xs-6 col-md-4 sidebar" id="sidebar">
|
2013-12-06 10:43:39 +00:00
|
|
|
<ul class="nav nav-pills nav-stacked" data-spy="affix">
|
|
|
|
<li class="active"><a href="#introduction11" data-toggle="tab"><i class="icon-chevron-right"></i> Introduction</a></li>
|
|
|
|
<t t-foreach="quotation.order_line" t-as="line">
|
|
|
|
<li><a t-att-href="'#%s'% line.id" data-toggle="tab"><i class="icon-chevron-right"></i><t t-raw="line.product_id.name_template"/> </a></li>
|
|
|
|
</t>
|
2013-12-18 12:55:59 +00:00
|
|
|
<li><a href="#quote" data-toggle="tab"><i class="icon-chevron-right"></i> Pricing</a></li>
|
2013-12-16 05:24:51 +00:00
|
|
|
<li><a href="#terms" data-toggle="tab"><i class="icon-chevron-right"></i> Terms & Conditions</a></li>
|
2013-12-06 10:43:39 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</t>
|
2013-12-02 12:34:37 +00:00
|
|
|
</template>
|
2013-12-10 10:44:42 +00:00
|
|
|
<template id="product_recommendation">
|
2013-12-12 11:50:25 +00:00
|
|
|
<div class="container mt32" t-if="quotation.recommended_products()">
|
2013-12-10 10:44:42 +00:00
|
|
|
<h3>Customers who have bought this product also bought:</h3>
|
|
|
|
<div class='row mt16' style="margin-left: 15px !important;">
|
|
|
|
<t t-foreach="quotation.recommended_products()" t-as="product">
|
|
|
|
<div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
|
|
|
|
<div class='mt16 text-center'>
|
2013-12-12 05:15:25 +00:00
|
|
|
<a href="#" t-field="product.name"/>
|
2013-12-10 10:44:42 +00:00
|
|
|
<span t-field="product.image_small" t-field-options='{"widget": "image", "class": "img-rounded"}'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</div>
|
2013-12-12 11:50:25 +00:00
|
|
|
</div>
|
2013-12-10 10:44:42 +00:00
|
|
|
</template>
|
2013-12-16 05:24:51 +00:00
|
|
|
<template id="terms_and_conditions" name="Terms & Conditions">
|
2013-12-19 10:12:10 +00:00
|
|
|
<section id="terms" class="tab-pane oe_section jumbotron">
|
2013-12-16 05:24:51 +00:00
|
|
|
<div class="container panel panel-default tab-pane oe_section">
|
|
|
|
<div class="row panel-body">
|
|
|
|
<div class="text-center">
|
|
|
|
<h2><strong>Terms & Conditions</strong></h2>
|
|
|
|
<p class="lead" t-field="quotation.note"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</template>
|
2013-12-16 13:23:46 +00:00
|
|
|
|
|
|
|
<template id="so_template" name="SO Template">
|
2013-12-19 10:12:10 +00:00
|
|
|
<t t-call="website.layout">
|
2013-12-16 13:23:46 +00:00
|
|
|
<div class="col-xs-12 col-md-8 tab-content">
|
2013-12-19 10:12:10 +00:00
|
|
|
<section id="template_introduction" class="tab-pane active" t-field="template.website_description">
|
2013-12-16 13:23:46 +00:00
|
|
|
</section>
|
|
|
|
<t t-foreach="template.quote_line" t-as="line">
|
2013-12-19 10:12:10 +00:00
|
|
|
<section class="tab-pane" t-att-id="line.id">
|
2013-12-16 13:23:46 +00:00
|
|
|
<div t-field="line.website_description" class="oe_structure"/>
|
|
|
|
</section>
|
|
|
|
</t>
|
2013-12-19 10:12:10 +00:00
|
|
|
<section id="templateterms" class="tab-pane oe_section jumbotron">
|
2013-12-16 13:23:46 +00:00
|
|
|
<div class="container panel panel-default tab-pane oe_section">
|
|
|
|
<div class="row panel-body">
|
|
|
|
<div class="text-center">
|
|
|
|
<h2><strong>Terms & Conditions</strong></h2>
|
|
|
|
<p class="lead" t-field="template.note"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
2013-12-19 10:12:10 +00:00
|
|
|
<div class="col-xs-6 col-md-4 sidebar" id="sidebar">
|
2013-12-16 13:23:46 +00:00
|
|
|
<ul class="nav nav-pills nav-stacked" data-spy="affix">
|
|
|
|
<li class="active"><a href="#template_introduction" data-toggle="tab"><i class="icon-chevron-right"></i> Introduction</a></li>
|
|
|
|
<t t-foreach="template.quote_line" t-as="line">
|
|
|
|
<li><a t-att-href="'#%s'% line.id" data-toggle="tab"><i class="icon-chevron-right"></i><t t-raw="line.product_id.name_template"/> </a></li>
|
|
|
|
</t>
|
|
|
|
<li><a href="#templateterms" data-toggle="tab"><i class="icon-chevron-right"></i> Terms & Conditions</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
2013-12-02 12:34:37 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|