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-16 06:43:29 +00:00
<section data-snippet-id= "title" >
<h1 class= "page-header" > Pricing</h1>
</section>
2014-01-16 12:54:03 +00:00
<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>
2013-12-19 10:12:10 +00:00
<th > Quantity</th>
2014-01-16 12:54:03 +00:00
<th > Discount</th>
<th class= "text-right" > Unit Price</th>
<th class= "text-right" > 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-16 12:54:03 +00:00
<div id= "quote_discount" t-if= "line.discount" >
<t t-esc= "line.discount" />
</div>
</td>
<td >
<strong class= "text-right" >
2014-01-01 19:21:21 +00:00
<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-16 12:54:03 +00:00
<div class= "text-right"
2014-01-01 19:21:21 +00:00
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 >
2014-01-16 06:43:29 +00:00
<a t-href= "./update_line/#{ line.id }/?order_id=#{ quotation.id }&unlink=True&token=#{ quotation.access_token }" class= "mb8 js_update_line_json pull-right hidden-print" t-if= "line.is_optional" >
2014-01-01 15:47:54 +00:00
<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>
2014-01-16 12:54:03 +00:00
<td > </td>
<td > <h3 class= "text-right" > Total</h3> </td>
<td class= "text-right" 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-16 12:54:03 +00:00
<t t-call= "website_quotation.quotation_toolbar" />
2014-01-01 19:21:21 +00:00
<section id= "terms" class= "container" t-if= "quotation.note" >
2014-01-03 09:30:35 +00:00
<h2 class= "page-header" > Terms & Conditions</h2>
2014-01-01 19:21:21 +00:00
<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-04 06:26:27 +00:00
<template id= "change_quantity" inherit_option_id= "website_quotation.pricing" name= "Change Quantity" >
2014-01-02 15:22:25 +00:00
<xpath expr= "//div[@id='quote_qty']" position= "replace" >
<div class= "input-group" >
2014-01-04 08:57:24 +00:00
<span class= "input-group-addon hidden-print" >
2014-01-03 15:54:45 +00:00
<a t-href= "./update_line/#{ line.id }/?order_id=#{ quotation.id }&remove=True&token=#{ quotation.access_token }" class= "mb8 js_update_line_json" >
2014-01-02 15:22:25 +00:00
<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" />
2014-01-04 08:57:24 +00:00
<span class= "input-group-addon hidden-print" >
2014-01-03 15:54:45 +00:00
<a t-href= "./update_line/#{ line.id }/?order_id=#{ quotation.id }&token=#{ quotation.access_token }" class= "mb8 js_update_line_json" >
2014-01-02 15:22:25 +00:00
<span class= "fa fa-plus" />
</a>
</span>
</div>
</xpath>
</template>
2013-12-06 10:43:39 +00:00
<template id= "chatter" >
2014-01-16 12:54:03 +00:00
<h1 class= "page-header" > History</h1>
2014-01-03 09:11:18 +00:00
<ul class= "media-list" id= "comments-list" >
<li t-foreach= "quotation.message_ids" t-as= "message" class= "media" >
<div class= "media-body" >
<img class= "media-object pull-left" t-att-src= "'/website/image?model=res.partner&field=image_small&id='+str(message.author_id.id)" style= "width: 50px; margin-right: 10px;" />
<div class= "media-body" >
<h5 class= "media-heading" >
<span t-field= "message.author_id" /> <small > on <span t-field= "message.date" /> </small>
</h5>
<div t-field= "message.body" />
</div>
</div>
</li>
</ul>
2014-01-16 12:54:03 +00:00
<t t-call= "website_quotation.quotation_toolbar" />
2014-01-03 09:11:18 +00:00
</template>
2014-01-04 06:26:27 +00:00
<!-- Options:Quotation Chatter: user can reply -->
<template id= "opt_quotation_chatter_post_complete_comment" name= "Allow Comments" inherit_option_id= "website_quotation.chatter" inherit_id= "website_quotation.chatter" >
2014-01-16 06:43:29 +00:00
<xpath expr= "//h1" position= "after" >
2014-01-04 08:57:24 +00:00
<section class= "mb32 css_editable_mode_hidden hidden-print" >
2014-01-16 12:54:03 +00:00
<form id= "comment" t-attf-action= "/quote/#{quotation.id}/#{quotation.access_token}/post" method= "POST" >
2014-01-03 09:11:18 +00:00
<img class= "img pull-left img-rounded" t-att-src= "'/website/image?model=res.partner&field=image_small&id='+str(user_id.partner_id.id)" style= "width: 50px; margin-right: 10px;" />
<div class= "pull-left mb32" style= "width: 75%%" >
<textarea rows= "3" name= "comment" class= "form-control" placeholder= "Write a comment..." > </textarea>
2014-01-16 12:54:03 +00:00
<button type= "submit" class= "btn btn-primary mt8" > Post</button>
2014-01-03 09:11:18 +00:00
</div>
</form>
</section>
<div class= "clearfix" />
</xpath>
2013-12-06 10:43:39 +00:00
</template>
2014-01-01 19:21:21 +00:00
2014-01-16 12:54:03 +00:00
<template id= "quotation_toolbar" >
<div class= "text-center hidden-print" >
<div class= "btn-group btn-group-lg" t-if= "quotation.state in ('draft', 'sent', 'waiting_date')" >
<a class= "btn btn-success fa fa-check" data-toggle= "modal" data-target= "#modelaccept" >
Accept
</a>
<a class= "btn btn-info fa fa-comment" type= "submit" href= "#discussion" >
Feedback
</a>
<a class= "btn btn-danger fa fa-times" data-toggle= "modal" data-target= "#modeldecline" >
Refuse
</a>
</div>
</div>
</template>
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" >
2014-01-04 06:26:27 +00:00
<script type= "text/javascript" src= "/website_quotation/static/src/js/website_quotation.js" > </script>
2014-01-18 10:46:34 +00:00
<script type= "text/javascript" src= "/website_quotation/static/lib/jSignature/jSignature.min.js" > </script>
2014-01-07 13:42:20 +00:00
<link rel= 'stylesheet' href= '/website_quotation/static/src/css/website_quotation.css' />
2014-01-02 18:58:58 +00:00
<t t-raw= "head or ''" />
</t>
2014-01-16 06:43:29 +00:00
<body data-spy= "scroll" data-target= ".navspy" >
2014-01-07 13:42:20 +00:00
<div class= "container" >
<div class= "row mt16" >
<div class= "col-md-3" >
2014-01-16 06:43:29 +00:00
<div class= "bs-sidebar hidden-print affix navspy" role= "complementary" >
<ul class= "nav bs-sidenav" data-id= "quote_sidebar" />
</div>
2014-01-07 13:42:20 +00:00
</div>
<div class= "col-md-9" >
2014-01-17 10:07:46 +00:00
<div class= "alert alert-info alert-dismissable" t-if= "new_post" >
<a class= "close hidden-print" data-dismiss= "alert" aria-hidden= "true" t-href= "/quote/#{quotation.id}/#{quotation.access_token}/close" > & times;</a>
2014-01-16 12:54:03 +00:00
<strong > Your message has been sent! We will come back to you as soon as possible!.</strong>
2014-01-02 18:58:58 +00:00
</div>
2014-01-16 12:54:03 +00:00
<t t-call= "website_quotation.quotation_toolbar" />
2014-01-07 13:42:20 +00:00
<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>
2014-01-16 12:54:03 +00:00
<em t-esc= "quotation.name" />
2014-01-07 13:42:20 +00:00
<small t-field= "quotation.state" />
2014-01-16 12:54:03 +00:00
<div groups= "base.group_website_publisher" t-ignore= "true" class= "pull-right css_editable_mode_hidden" >
<a class= "btn btn-info" t-att-href= "'/web#return_label=Website&model=%s&id=%s' % (quotation._name, quotation.id)" > Edit</a>
</div>
2014-01-07 13:42:20 +00:00
</h1>
<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>
2014-01-16 12:54:03 +00:00
<h4 class= "modal-title" > Validate Sale Order</h4>
2014-01-18 10:46:34 +00:00
<p > <b > I agree that by signing this proposal, I accept it on the behalf of <t t-esc= "quotation.partner_id.company_id.name" /> .</b> </p>
2014-01-07 13:42:20 +00:00
</div>
2014-01-18 10:46:34 +00:00
<form id= "accept" method= "POST" t-attf-action= "/quote/accept/#{quotation.id}/?token=#{quotation.access_token}" class= "js_accept_json" >
2014-01-07 13:42:20 +00:00
<div class= "modal-body" >
<dl class= "dl-horizontal" >
2014-01-18 10:46:34 +00:00
<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>
<dt > <h4 > Signer Name : </h4> </dt>
<dd > <input type= "text" id= "signer" class= "col-sm-4 form-control" /> </dd>
2014-01-07 13:42:20 +00:00
</dl>
2014-01-18 10:46:34 +00:00
<div class= "panel panel-default" >
<div class= "panel-heading" > Draw Your Signature</div>
<div id= "signature" class= "panel-body" />
<div class= "panel-footer" > <a id= "sign_clean" class= "btn btn-xs btn-info" > Clear</a> </div>
</div>
2014-01-07 13:42:20 +00:00
</div>
<div class= "modal-footer" >
2014-01-13 10:36:17 +00:00
<button type= "submit" class= "btn btn-success" > Validate Order</button> or
2014-01-16 12:54:03 +00:00
<button type= "button" class= "btn btn-default" data-dismiss= "modal" > Cancel</button>
2014-01-07 13:42:20 +00:00
</div>
</form>
2014-01-03 07:04:49 +00:00
</div>
</div>
</div>
2014-01-07 13:42:20 +00:00
<div class= "alert alert-warning alert-dismissable" t-if= "quotation.state == 'cancel'" >
<button type= "button" class= "close hidden-print" data-dismiss= "alert" aria-hidden= "true" > & times;</button>
2014-01-13 10:36:17 +00:00
<strong > This quotation has been canceled.</strong> Contact <span t-field= "quotation.user_id" /> ( <span t-if= "quotation.user_id.email" > <span class= "fa fa-envelope" t-field= "quotation.user_id.email" /> </span> <span t-if= "quotation.user_id.phone" > <span class= "fa fa-phone" t-field= "quotation.user_id.phone" /> </span> ) in order to ask a new quote.
2014-01-07 13:42:20 +00:00
</div>
2014-01-02 18:58:58 +00:00
2014-01-07 13:42:20 +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" >
<button type= "button" class= "close" data-dismiss= "modal" aria-hidden= "true" > & times;</button>
2014-01-16 12:54:03 +00:00
<h4 class= "modal-title" > Reject This Quote</h4>
<p >
Tell us why you are refusing this quotation. <span class= "text-muted" > This will help us improve our services.</span> </p> <p >
If you want modifications to this quote, use the feedback button instead.
</p>
2014-01-07 13:42:20 +00:00
</div>
<form id= "decline" method= "POST" t-attf-action= "/quote/#{quotation.id}/#{quotation.access_token}/decline" >
<div class= "modal-body" >
<textarea rows= "3" name= "decline_message" placeholder= "Your Comment....." class= "form-control" > </textarea>
</div>
<div class= "modal-footer" >
2014-01-16 12:54:03 +00:00
<button type= "submit" t-att-id= "quotation.id" class= "btn btn-info" > Reject</button> or
<button type= "button" class= "btn btn-default" data-dismiss= "modal" > Keep as it is</button>
2014-01-07 13:42:20 +00:00
</div>
</form>
2014-01-02 15:22:25 +00:00
</div>
</div>
2013-12-18 12:55:59 +00:00
</div>
2014-01-02 18:58:58 +00:00
2014-01-07 13:42:20 +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>
2014-01-02 18:58:58 +00:00
</div>
2014-01-07 13:42:20 +00:00
<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>
2014-01-02 18:58:58 +00:00
</div>
</div>
2014-01-07 13:42:20 +00:00
<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>
2014-01-02 18:58:58 +00:00
</div>
2014-01-07 13:42:20 +00:00
<div class= "row" >
<label class= "col-sm-5 text-right" > Quote Date:</label>
2014-01-02 18:58:58 +00:00
<div class= "col-sm-7" >
2014-01-07 13:42:20 +00:00
<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>
2014-01-02 18:58:58 +00:00
</div>
</div>
</div>
</div>
2014-01-07 13:42:20 +00:00
<a id= "offer" />
<div t-field= "quotation.website_description" />
2014-01-02 18:58:58 +00:00
2014-01-07 13:42:20 +00:00
<t t-foreach= "quotation.order_line" t-as= "line" >
<a t-att-id= "line.id" />
<div t-field= "line.website_description" />
</t>
2014-01-02 18:58:58 +00:00
2014-01-07 13:42:20 +00:00
<a id= "pricing" />
<t t-call= "website_quotation.pricing" />
2014-01-16 12:54:03 +00:00
2014-01-07 13:42:20 +00:00
<a id= "options" />
<t t-call= "website_quotation.optional_products" />
2014-01-02 18:58:58 +00:00
2014-01-07 13:42:20 +00:00
<a id= "discussion" />
<t t-call= "website_quotation.chatter" />
</div>
2014-01-02 15:22:25 +00:00
</div>
2014-01-07 13:42:20 +00:00
</div>
</body>
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" >
2014-01-03 15:54:45 +00:00
<t t-if= "not option.line_id" >
2014-01-02 15:22:25 +00:00
<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>
2014-01-04 08:57:24 +00:00
<a t-href= "/quote/add_line/#{ option.id }/#{ quotation.id }/#{ quotation.access_token }" class= "btn btn-primary btn-xs hidden-print" > Add To Quotation
2014-01-02 15:22:25 +00:00
</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" >
2014-01-03 09:30:35 +00:00
<h2 class= "page-header" > Terms & Conditions</h2>
2014-01-02 18:58:58 +00:00
<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>