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">
|
2014-01-01 19:21:21 +00:00
|
|
|
<section id="quote" class="container">
|
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>
|
2014-01-02 15:22:25 +00:00
|
|
|
<div id="quote_qty">
|
|
|
|
<t t-esc="line.product_uom_qty"/>
|
2014-01-01 15:47:54 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-01-01 19:21:21 +00:00
|
|
|
<strong>
|
|
|
|
<div t-field="line.price_unit"
|
|
|
|
t-field-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'
|
|
|
|
t-att-style="line.discount and 'text-decoration: line-through' or ''"
|
|
|
|
t-att-class="line.discount and 'text-danger' or ''"/>
|
|
|
|
<!-- TODO: apply monetary widget formating -->
|
|
|
|
<div t-if="line.discount">
|
|
|
|
<t t-esc="'%.2f' % ((1-line.discount) * line.price_unit)"/>
|
|
|
|
</div>
|
|
|
|
</strong>
|
2014-01-01 15:47:54 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2014-01-01 19:21:21 +00:00
|
|
|
<div
|
|
|
|
t-field="line.price_subtotal"
|
|
|
|
t-field-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'/>
|
2014-01-01 15:47:54 +00:00
|
|
|
</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 19:21:21 +00:00
|
|
|
<strong data-id="total_amount" t-field="quotation.amount_total" t-field-options='{"widget": "monetary","display_currency": "quotation.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>
|
2014-01-01 19:21:21 +00:00
|
|
|
|
|
|
|
<section id="terms" class="container" t-if="quotation.note">
|
|
|
|
<h2>Terms & Conditions</h2>
|
|
|
|
<p t-field="quotation.note"/>
|
|
|
|
</section>
|
2013-12-06 10:43:39 +00:00
|
|
|
</template>
|
2014-01-01 15:47:54 +00:00
|
|
|
|
2014-01-02 15:22:25 +00:00
|
|
|
<template id="change_quantity" inherit_option_id="website_sale_quote.pricing" name="Change Quantity">
|
|
|
|
<xpath expr="//div[@id='quote_qty']" position="replace">
|
|
|
|
<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>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
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>
|
2014-01-03 07:04:49 +00:00
|
|
|
<form id="post" method="POST" t-attf-action="/quote/#{quotation.id}/#{quotation.access_token}/post">
|
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>
|
2014-01-01 19:21:21 +00:00
|
|
|
|
2013-12-06 10:43:39 +00:00
|
|
|
<template id="so_quotation" name="Product Quotation">
|
2013-12-19 05:36:48 +00:00
|
|
|
<t t-call="website.layout">
|
2014-01-02 18:58:58 +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>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row mt16">
|
|
|
|
<div class="col-md-3 navbar">
|
|
|
|
<ul class="nav nav-pills nav-stacked mt32">
|
2014-01-02 15:22:25 +00:00
|
|
|
<li class="active">
|
2014-01-02 18:58:58 +00:00
|
|
|
<a href="#introduction" data-toggle="tab">Introduction</a>
|
2014-01-02 15:22:25 +00:00
|
|
|
</li>
|
|
|
|
<li t-foreach="quotation.order_line" t-as="line">
|
|
|
|
<a t-att-href="'#%s'% line.id" data-toggle="tab">
|
|
|
|
<t t-raw="line.product_id.name"/>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="#quote" data-toggle="tab">Pricing</a></li>
|
|
|
|
<li><a href="#terms" data-toggle="tab">Terms & Conditions</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-01-02 18:58:58 +00:00
|
|
|
<div class="col-md-9">
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<div class="btn-group btn-group-lg" t-if="quotation.state in ('draft', 'sent', 'waiting_date')">
|
2014-01-03 07:04:49 +00:00
|
|
|
<a class="btn btn-success fa fa-check" data-toggle="modal" data-target="#modelaccept">
|
2014-01-02 18:58:58 +00:00
|
|
|
Accept
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-info fa fa-comment" type="submit" href="#chat">
|
|
|
|
Feedback
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-danger fa fa-times" data-toggle="modal" data-target="#modeldecline">
|
|
|
|
Refuse
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1 class="page-header">
|
|
|
|
<span t-if="quotation.state in ('draft','sent','cancel')">Your Quotation</span>
|
|
|
|
<span t-if="quotation.state not in ('draft','sent','cancel')">Your Order</span>
|
|
|
|
<em t-esc="quotation.name"/>
|
|
|
|
<small t-field="quotation.state"/>
|
|
|
|
</h1>
|
|
|
|
|
2014-01-03 07:04:49 +00:00
|
|
|
<div class="modal fade" id="modelaccept" role="dialog" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
|
|
|
|
<h4 class="modal-title">Please confirm you accept this order:</h4>
|
|
|
|
</div>
|
|
|
|
<form id="accept" method="POST" t-attf-action="/quote/#{quotation.id}/#{quotation.access_token}/accept">
|
|
|
|
<div class="modal-body">
|
|
|
|
<dl class="dl-horizontal">
|
|
|
|
<dt><h4>Your Name : </h4></dt>
|
|
|
|
<dd><h4 t-esc="quotation.partner_id.name"></h4></dd>
|
|
|
|
<dt><h4>Price : </h4></dt>
|
|
|
|
<dd><h4 data-id="total_amount" t-field="quotation.amount_total" t-field-options='{"widget": "monetary","display_currency": "quotation.pricelist_id.currency_id"}'/></dd>
|
|
|
|
<dt><h4>Payment Term : </h4></dt>
|
|
|
|
<dd><h4 t-esc="quotation.payment_term.name"></h4></dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="submit" class="btn btn-success">Validate Order</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Discard</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-01-02 18:58:58 +00:00
|
|
|
<div class="alert alert-warning alert-dismissable" t-if="quotation.state == 'cancel'">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
|
2014-01-03 07:04:49 +00:00
|
|
|
<strong>This quotation has been canceled.</strong> Contact <p t-field="quotation.user_id"/> to ask a new one.
|
2014-01-02 18:58:58 +00:00
|
|
|
</div>
|
|
|
|
|
2014-01-02 15:22:25 +00:00
|
|
|
<div class="modal fade" id="modeldecline" role="dialog" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2014-01-03 07:04:49 +00:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
|
2014-01-02 15:22:25 +00:00
|
|
|
<h4 class="modal-title">Reason</h4>
|
|
|
|
</div>
|
2014-01-03 07:04:49 +00:00
|
|
|
<form id="decline" method="POST" t-attf-action="/quote/#{quotation.id}/#{quotation.access_token}/decline">
|
2014-01-02 15:22:25 +00:00
|
|
|
<div class="modal-body">
|
2014-01-03 07:04:49 +00:00
|
|
|
<textarea rows="3" name="decline_message" placeholder="Your Comment....." class="form-control"> </textarea>
|
2014-01-02 15:22:25 +00:00
|
|
|
</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>
|
2013-12-18 12:55:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-02 18:58:58 +00:00
|
|
|
|
|
|
|
<a id="introduction"/>
|
|
|
|
<div class="row mt32">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div>
|
|
|
|
<label class="col-sm-3 text-right">Bill To:</label>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<div t-field="quotation.partner_invoice_id" t-field-options='{
|
|
|
|
"widget": "contact",
|
|
|
|
"fields": ["address", "name", "phone", "email"]
|
|
|
|
}'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div t-if="quotation.partner_shipping_id.id != quotation.partner_invoice_id.id">
|
|
|
|
<label class="col-sm-3 text-right">Ship To:</label>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<div t-field="quotation.partner_shipping_id" t-field-options='{
|
|
|
|
"widget": "contact",
|
|
|
|
"fields": ["address", "name", "phone"]
|
|
|
|
}'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-5 text-right">Your Contact:</label>
|
|
|
|
<div class="col-sm-7">
|
|
|
|
<div t-field="quotation.user_id" t-field-options='{
|
|
|
|
"widget": "contact",
|
|
|
|
"fields": ["name", "phone", "email"]
|
|
|
|
}'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-5 text-right">Quote Date:</label>
|
|
|
|
<div class="col-sm-7">
|
|
|
|
<span t-field="quotation.date_order"/>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"/>
|
|
|
|
<div t-if="quotation.client_order_ref">
|
|
|
|
<label class="col-sm-5 text-right">Your Reference:</label>
|
|
|
|
<div class="col-sm-7">
|
|
|
|
<span t-field="quotation.client_order_ref"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a id="offer"/>
|
|
|
|
<div t-field="quotation.website_description"/>
|
|
|
|
|
2014-01-02 15:22:25 +00:00
|
|
|
<t t-foreach="quotation.order_line" t-as="line">
|
2014-01-02 18:58:58 +00:00
|
|
|
<a t-att-id="line.id"/>
|
|
|
|
<div t-field="line.website_description"/>
|
2014-01-02 15:22:25 +00:00
|
|
|
</t>
|
2014-01-02 18:58:58 +00:00
|
|
|
|
|
|
|
<a id="pricing"/>
|
2014-01-02 15:22:25 +00:00
|
|
|
<t t-call="website_sale_quote.pricing"/>
|
2014-01-02 18:58:58 +00:00
|
|
|
|
|
|
|
<a id="options"/>
|
2014-01-02 15:22:25 +00:00
|
|
|
<t t-call="website_sale_quote.optional_products"/>
|
2014-01-02 18:58:58 +00:00
|
|
|
|
|
|
|
<a id="discussion"/>
|
2014-01-02 15:22:25 +00:00
|
|
|
<t t-call="website_sale_quote.chatter"/>
|
|
|
|
</div>
|
2014-01-02 18:58:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-12-06 10:43:39 +00:00
|
|
|
</t>
|
2013-12-02 12:34:37 +00:00
|
|
|
</template>
|
2014-01-01 19:21:21 +00:00
|
|
|
|
2014-01-02 15:22:25 +00:00
|
|
|
<template id="optional_products">
|
|
|
|
<div class="container mt32" t-if="quotation.options">
|
|
|
|
<h3>Optional Products & Services:</h3>
|
2014-01-01 20:27:53 +00:00
|
|
|
<div class='row mt16'>
|
2014-01-02 15:22:25 +00:00
|
|
|
<t t-foreach="quotation.options" t-as="option">
|
|
|
|
<t t-if="not option.add_to_line">
|
|
|
|
<div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
|
|
|
|
<div class='mt16 text-center'>
|
|
|
|
<a href="#" t-field="option.product_id.name"/>
|
|
|
|
<span t-field="option.product_id.image_small" t-field-options='{"widget": "image", "class": "img-rounded"}'/>
|
|
|
|
</div>
|
|
|
|
<a type="submit" t-href="./add_line/#{ option.id }/?order=#{ quotation.id }&product=#{option.product_id.id}" class="btn btn-primary btn-xs js_add_line_json">Add To Quotation
|
|
|
|
</a>
|
2013-12-10 10:44:42 +00:00
|
|
|
</div>
|
2014-01-02 15:22:25 +00:00
|
|
|
</t>
|
2013-12-10 10:44:42 +00:00
|
|
|
</t>
|
|
|
|
</div>
|
2013-12-12 11:50:25 +00:00
|
|
|
</div>
|
2013-12-10 10:44:42 +00:00
|
|
|
</template>
|
2014-01-02 18:58:58 +00:00
|
|
|
|
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">
|
2014-01-02 18:58:58 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4" id="sidebar">
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
|
|
<li class="active"><a href="#template_introduction" data-toggle="tab">Contact Data</a></li>
|
|
|
|
<li><a href="#template_introduction" data-toggle="tab">Our Offer</a></li>
|
|
|
|
<t t-foreach="template.quote_line" t-as="line">
|
|
|
|
<li><a t-att-href="'#%s'% line.id" data-toggle="tab"><t t-raw="line.product_id.name_template"/> </a></li>
|
|
|
|
</t>
|
|
|
|
<li><a href="#templateterms" data-toggle="tab">Terms & Conditions</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8 tab-content">
|
|
|
|
<div id="template_introduction" t-field="template.website_description"/>
|
|
|
|
|
|
|
|
<t t-foreach="template.quote_line" t-as="line">
|
|
|
|
<section class="tab-pane" t-att-id="line.id">
|
|
|
|
<div t-field="line.website_description" class="oe_structure"/>
|
|
|
|
</section>
|
|
|
|
</t>
|
|
|
|
<section id="templateterms" class="tab-pane">
|
|
|
|
<div class="container panel panel-default">
|
|
|
|
<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>
|
|
|
|
</div>
|
2013-12-16 13:23:46 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
2014-01-01 19:21:21 +00:00
|
|
|
|
2013-12-02 12:34:37 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|