2013-12-02 12:34:37 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
2014-01-20 20:52:29 +00:00
<data >
<template id= "pricing" name= "Price" >
<section data-snippet-id= "title" >
<h1 class= "page-header" > Pricing</h1>
</section>
<section id= "quote" >
<table class= "table table-hover" >
<thead >
<tr >
<th > Products</th>
<th > Quantity</th>
2014-01-23 12:02:16 +00:00
<th > Discount(%)</th>
2014-01-20 20:52:29 +00:00
<th class= "text-right" > Unit Price</th>
<th class= "text-right" > Price</th>
</tr>
</thead>
<tbody >
<tr t-foreach= "quotation.order_line" t-as= "line" >
<td >
<div t-field= "line.name" />
</td>
<td >
<div id= "quote_qty" >
<t t-esc= "line.product_uom_qty" />
</div>
</td>
<td >
<div id= "quote_discount" t-if= "line.discount" >
<t t-esc= "line.discount" />
</div>
</td>
<td >
<strong class= "text-right" >
<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>
</td>
<td >
<div class= "text-right"
t-field="line.price_subtotal"
t-field-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'/>
</td>
<td >
2014-01-22 13:01:58 +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.option_line_id" >
2014-01-20 20:52:29 +00:00
<span class= "fa fa-trash-o" > </span>
</a>
</td>
</tr>
<tr >
<td > </td>
<td > </td>
<td > </td>
<td > <h3 class= "text-right" > Total</h3> </td>
<td class= "text-right" colspan= "2" >
<h3 >
<strong data-id= "total_amount" t-field= "quotation.amount_total" t-field-options= '{"widget": "monetary","display_currency": "quotation.pricelist_id.currency_id"}' />
</h3>
</td>
</tr>
</tbody>
</table>
</section>
<t t-call= "website_quotation.quotation_toolbar" />
<section id= "terms" class= "container" t-if= "quotation.note" >
<h2 class= "page-header" > Terms & Conditions</h2>
<p t-field= "quotation.note" />
</section>
</template>
2014-01-01 15:47:54 +00:00
2014-01-20 20:52:29 +00:00
<template id= "change_quantity" inherit_option_id= "website_quotation.pricing" name= "Change Quantity" >
<xpath expr= "//div[@id='quote_qty']" position= "replace" >
<div class= "input-group" >
<span class= "input-group-addon hidden-print" >
<a t-href= "./update_line/#{ line.id }/?order_id=#{ quotation.id }&remove=True&token=#{ quotation.access_token }" 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 hidden-print" >
<a t-href= "./update_line/#{ line.id }/?order_id=#{ quotation.id }&token=#{ quotation.access_token }" class= "mb8 js_update_line_json" >
<span class= "fa fa-plus" />
</a>
</span>
</div>
</xpath>
</template>
2014-01-02 15:22:25 +00:00
2014-01-20 20:52:29 +00:00
<template id= "chatter" >
2014-01-21 12:53:14 +00:00
<h1 class= "page-header hidden-print" > History</h1>
<ul class= "media-list hidden-print" id= "comments-list" >
2014-01-20 20:52:29 +00:00
<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>
</template>
2014-01-03 09:11:18 +00:00
2014-01-20 20:52:29 +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" >
<xpath expr= "//h1" position= "after" >
<section class= "mb32 css_editable_mode_hidden hidden-print" >
<form id= "comment" t-attf-action= "/quote/#{quotation.id}/#{quotation.access_token}/post" method= "POST" >
<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%%" >
2014-01-20 22:22:28 +00:00
<textarea rows= "4" name= "comment" class= "form-control" placeholder= "Send us a note..." > </textarea>
<button type= "submit" class= "btn btn-primary mt8" > Send</button>
2014-01-20 20:52:29 +00:00
</div>
</form>
</section>
<div class= "clearfix" />
</xpath>
</template>
2014-01-01 19:21:21 +00:00
2014-01-20 20:52:29 +00:00
<template id= "quotation_toolbar" >
2014-01-20 22:22:28 +00:00
<div class= "text-center hidden-print" 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" >
Reject
</a>
2014-01-20 20:52:29 +00:00
</div>
</template>
2014-01-16 12:54:03 +00:00
2014-01-20 20:52:29 +00:00
<template id= "so_quotation" name= "Product Quotation" >
<t t-call= "website.layout" >
<t t-set= "head" >
<script type= "text/javascript" src= "/website_quotation/static/src/js/website_quotation.js" > </script>
<script type= "text/javascript" src= "/website_quotation/static/lib/jSignature/jSignature.min.js" > </script>
<link rel= 'stylesheet' href= '/website_quotation/static/src/css/website_quotation.css' />
<t t-raw= "head or ''" />
</t>
<body data-spy= "scroll" data-target= ".navspy" >
<div class= "container" >
<div class= "row mt16" >
<div class= "col-md-3" >
<div class= "bs-sidebar" >
<div class= "text-center hidden-print" t-if= "quotation.state in ('draft', 'sent', 'waiting_date')" style= "padding: 10px" >
2014-01-22 12:18:56 +00:00
<a t-if= "not date_diff" class= "btn btn-primary btn-block fa fa-check" data-toggle= "modal" data-target= "#modelaccept" >
2014-01-20 20:52:29 +00:00
Accept Order
</a>
2014-01-22 12:18:56 +00:00
<a t-if= "date_diff" >
<strong > This offer expired!.</strong> <a href= "#discussion" > Contact us</a> for new quote.
</a>
2014-01-20 22:22:28 +00:00
<div class= "mt8" >
<a type= "submit" href= "#discussion" >
Ask Changes
</a> or
<a data-toggle= "modal" data-target= "#modeldecline" >
Reject
</a>
</div>
2014-01-20 20:52:29 +00:00
</div>
<hr class= "mt0 mb0" />
2014-01-21 12:53:14 +00:00
<t t-call= "website_quotation.navigation_menu" />
2014-01-22 12:18:56 +00:00
<hr class= "mt0 mb0" />
2014-01-22 13:01:58 +00:00
<div t-if= "not date_diff" class= "text-center hidden-print" >
2014-01-22 12:18:56 +00:00
<input type= "hidden" t-att-value= "quotation.validity_date" id= "validity_date" />
<div class= "mt8" t-if= "(quotation.before_discount - quotation.amount_total) > 0.0" >
<strong > This offer at </strong>
<em t-field= "quotation.amount_total"
t-field-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'></em>
<em t-field= "quotation.before_discount"
t-field-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'
style="text-decoration: line-through"
class="text-danger"></em>
</div>
<strong class= "text-center" t-if= "(quotation.before_discount - quotation.amount_total) > 0.0" > Expire in :</strong>
<strong class= "text-center" t-if= "not((quotation.before_discount - quotation.amount_total) > 0.0)" > This offer Expire in:</strong>
<div id= "countdown" />
<strong t-if= "(quotation.before_discount - quotation.amount_total) > 0.0" class= "text-center" > (<t t-esc= "(quotation.before_discount - quotation.amount_total)" /> Discount)</strong>
</div>
2014-01-20 20:52:29 +00:00
</div>
</div>
<div class= "col-md-9" >
2014-01-20 22:22:28 +00:00
<div class= "alert alert-success alert-dismissable" t-if= "message==1" >
<button type= "button" class= "close" data-dismiss= "alert" aria-hidden= "true" > & times;</button>
Your message has been successfully sent!
</div>
<div class= "alert alert-warning alert-dismissable" t-if= "message==2" >
<button type= "button" class= "close" data-dismiss= "alert" aria-hidden= "true" > & times;</button>
This quotation has been rejected. <a href= "#discussion" > Contact us</a> if you want a new one.
</div>
<div class= "alert alert-warning alert-dismissable" t-if= "message==3" >
<button type= "button" class= "close" data-dismiss= "alert" aria-hidden= "true" > & times;</button>
This order has been validated. Thanks for your trust
and do not hesitate to <a href= "#discussion" > contact us</a> for
any question.
</div>
2014-01-20 20:52:29 +00:00
<a id= "introduction" />
<h1 class= "page-header mt16" >
<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" />
<div groups= "base.group_website_publisher" t-ignore= "true" class= "pull-right css_editable_mode_hidden" >
2014-01-21 12:53:14 +00:00
<a class= "btn btn-info hidden-print" t-att-href= "'/web#return_label=Website&model=%s&id=%s' % (quotation._name, quotation.id)" > Update Quote</a>
2014-01-20 20:52:29 +00:00
</div>
</h1>
<div class= "modal fade" id= "modelaccept" role= "dialog" aria-hidden= "true" >
<div class= "modal-dialog" >
<form id= "accept" method= "POST" t-attf-action= "/quote/accept/#{quotation.id}/?token=#{quotation.access_token}" class= "js_accept_json modal-content" >
<div class= "modal-header" >
<button type= "button" class= "close" data-dismiss= "modal" aria-hidden= "true" > & times;</button>
<h4 class= "modal-title" > Validate Order</h4>
2014-01-02 18:58:58 +00:00
</div>
2014-01-20 20:52:29 +00:00
<div class= "modal-body" >
2014-01-23 12:02:16 +00:00
<p t-if= "not salesperson" >
2014-01-20 20:52:29 +00:00
I agree that by signing this proposal, I
accept it on the behalf of <b t-field= "quotation.company_id" /> ,
for an amount of
<b data-id= "total_amount" t-field= "quotation.amount_total"
t-field-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'/>
with payment terms: <b t-field= "quotation.payment_term" /> .
</p>
2014-01-23 12:02:16 +00:00
<p t-if= "salesperson" >
Only customer can validate this quotation.
</p>
2014-01-03 07:04:49 +00:00
</div>
2014-01-20 20:52:29 +00:00
<div class= "modal-footer" >
2014-01-23 12:15:39 +00:00
<button type= "submit" t-attf-class= "btn btn-primary #{salesperson and 'disabled' or ''}" > Sign Order</button> or
2014-01-20 20:52:29 +00:00
<button type= "button" class= "btn btn-link" data-dismiss= "modal" style= "padding: 0" > Cancel</button>
</div>
</form>
</div>
</div>
2014-01-03 07:04:49 +00:00
2014-01-20 20:52:29 +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>
<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.
</div>
<div class= "modal fade" id= "modeldecline" role= "dialog" aria-hidden= "true" >
<div class= "modal-dialog" >
<form id= "decline" method= "POST" t-attf-action= "/quote/#{quotation.id}/#{quotation.access_token}/decline" class= "modal-content" >
<div class= "modal-header" >
<button type= "button" class= "close" data-dismiss= "modal" aria-hidden= "true" > & times;</button>
<h4 class= "modal-title" > Reject This Quote</h4>
</div>
<div class= "modal-body" >
<p >
Tell us why you are refusing this quotation, this will help us improve our services.
</p>
<textarea rows= "4" name= "decline_message" placeholder= "Your feedback....." class= "form-control" />
2014-01-07 13:42:20 +00:00
</div>
2014-01-20 20:52:29 +00:00
<div class= "modal-footer" >
<button type= "submit" t-att-id= "quotation.id" class= "btn btn-primary" > Reject</button> or
<button type= "button" class= "btn btn-link" data-dismiss= "modal" style= "padding: 0" > Cancel</button>
</div>
</form>
</div>
</div>
2014-01-02 18:58:58 +00:00
2014-01-20 20:52:29 +00:00
<div class= "row mt32" >
<div class= "col-md-6" >
2014-01-21 13:58:49 +00:00
<div class= "row" >
<label class= "col-sm-4 text-right" > Customer:</label>
<div class= "col-sm-8" >
<div t-field= "quotation.partner_id" />
</div>
</div>
<div class= "row" >
<label class= "col-sm-4 text-right" > Bill To:</label>
<div class= "col-sm-8" >
2014-01-20 20:52:29 +00:00
<div t-field= "quotation.partner_invoice_id" t-field-options= '{
"widget": "contact",
"fields": ["address", "name", "phone", "email"]
}'/>
2014-01-07 13:42:20 +00:00
</div>
2014-01-20 20:52:29 +00:00
</div>
2014-01-21 13:58:49 +00:00
<div t-if= "quotation.partner_shipping_id.id != quotation.partner_invoice_id.id" class= "row" >
<label class= "col-sm-4 text-right" > Ship To:</label>
<div class= "col-sm-8" >
2014-01-20 20:52:29 +00:00
<div t-field= "quotation.partner_shipping_id" t-field-options= '{
"widget": "contact",
"fields": ["address", "name", "phone"]
}'/>
2014-01-07 13:42:20 +00:00
</div>
2014-01-02 15:22:25 +00:00
</div>
2014-01-20 20:52:29 +00:00
</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>
2014-01-02 18:58:58 +00:00
2014-01-20 20:52:29 +00:00
<a id= "offer" />
<div t-field= "quotation.website_description" />
2014-01-02 18:58:58 +00:00
2014-01-20 20:52:29 +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-21 12:53:14 +00:00
<div class= "oe_structure" />
2014-01-02 18:58:58 +00:00
2014-01-20 20:52:29 +00:00
<a id= "pricing" />
<t t-call= "website_quotation.pricing" />
<a id= "options" />
<t t-call= "website_quotation.optional_products" />
2014-01-02 18:58:58 +00:00
2014-01-20 20:52:29 +00:00
<a id= "discussion" />
<t t-call= "website_quotation.chatter" />
</div>
</div>
</div>
</body>
</t>
</template>
2014-01-02 18:58:58 +00:00
2014-01-21 12:53:14 +00:00
<template id= "navigation_menu" >
2014-01-25 06:34:38 +00:00
<div class= "hidden-print navspy" data-editable= "0" role= "complementary" >
2014-01-21 12:53:14 +00:00
<ul class= "nav bs-sidenav" data-id= "quote_sidebar" >
<li > <a href= "#introduction" > Introduction</a> </li>
</ul>
</div>
</template>
<!-- Options:Quotation Signature -->
<template id= "opt_quotation_signature" name= "Signature" inherit_option_id= "website_quotation.so_quotation" inherit_id= "website_quotation.so_quotation" >
<xpath expr= "//div[@class='modal-body']" position= "inside" >
2014-01-23 12:02:16 +00:00
<div id= "signer" class= "form-group" t-if= "not salesperson" >
2014-01-21 12:53:14 +00:00
<label class= "control-label" for= "name" > Your Name:</label>
<input type= "text" name= "signer" id= "name" class= "form-control" />
</div>
2014-01-23 12:02:16 +00:00
<div class= "panel panel-default mt16 mb0" id= "drawsign" t-if= "not salesperson" >
2014-01-21 12:53:14 +00:00
<div class= "panel-heading" >
<div class= "pull-right" >
<a id= "sign_clean" class= "btn btn-xs" > Clear</a>
</div>
<strong > Draw your signature</strong>
</div>
<div id= "signature" class= "panel-body" style= "padding: 0" />
</div>
</xpath>
</template>
2014-01-20 20:52:29 +00:00
<template id= "optional_products" >
2014-01-21 12:53:14 +00:00
<div class= "container mt32" t-if= "option" >
<section data-snippet-id= "title" >
<h1 class= "page-header" > Options</h1>
</section>
<section id= "options" >
<table class= "table table-hover" >
<thead >
<tr >
<th > Products</th>
<th > Discription</th>
2014-01-23 12:02:16 +00:00
<th > Discount(%)</th>
2014-01-21 12:53:14 +00:00
<th class= "text-right" > Price</th>
</tr>
</thead>
<tbody >
<tr t-foreach= "quotation.options" t-as= "option" >
<t t-if= "not option.line_id" >
<td >
<div t-field= "option.product_id.name" />
</td>
<td >
<div t-field= "option.name" />
</td>
<td >
<div id= "quote_discount" t-if= "option.discount" >
<t t-esc= "option.discount" />
</div>
</td>
<td >
<strong class= "text-right" >
<div t-field= "option.price_unit"
t-field-options='{"widget": "monetary", "display_currency": "quotation.pricelist_id.currency_id"}'
t-att-style="option.discount and 'text-decoration: line-through' or ''"
t-att-class="option.discount and 'text-danger' or ''"/>
<div t-if= "option.discount" >
<t t-esc= "'%.2f' % ((1-option.discount) * option.price_unit)" />
</div>
</strong>
</td>
<td class= "pull-right" >
<a t-href= "/quote/add_line/#{ option.id }/#{ quotation.id }/#{ quotation.access_token }" class= "mb8 hidden-print" >
<span class= "fa fa-shopping-cart" />
</a>
</td>
</t>
</tr>
</tbody>
</table>
</section>
</div>
2014-01-20 20:52:29 +00:00
</template>
2014-01-01 19:21:21 +00:00
2014-01-20 20:52:29 +00:00
<template id= "so_template" name= "SO Template" >
2014-01-23 10:23:37 +00:00
<t t-call= "website.layout" >
<t t-set= "head" >
<script type= "text/javascript" src= "/website_quotation/static/src/js/website_quotation.js" > </script>
<link rel= 'stylesheet' href= '/website_quotation/static/src/css/website_quotation.css' />
<t t-raw= "head or ''" />
</t>
<body data-spy= "scroll" data-target= ".navspy" >
<div class= "container" >
<div class= "row mt16" >
<div class= "col-md-3" >
<div class= "bs-sidebar" >
<div class= "hidden-print navspy" role= "complementary" >
<ul class= "nav bs-sidenav" data-id= "quote_sidebar" >
</ul>
2014-01-20 20:52:29 +00:00
</div>
</div>
2014-01-23 10:23:37 +00:00
</div>
<div class= "col-md-9" >
<div id= "template_introduction" t-field= "template.website_description" />
2014-01-23 12:02:16 +00:00
<t t-foreach= "template.quote_line" t-as= "line" >
<a t-att-id= "line.id" />
<div t-field= "line.website_description" />
</t>
2014-01-23 10:23:37 +00:00
<div class= "oe_structure" />
<section id= "terms" class= "container" t-if= "template.note" >
<h2 class= "page-header" > Terms & Conditions</h2>
<p t-field= "template.note" />
</section>
</div>
</div>
2013-12-16 13:23:46 +00:00
</div>
2014-01-23 10:23:37 +00:00
</body>
</t>
2014-01-20 20:52:29 +00:00
</template>
2014-01-01 19:21:21 +00:00
2014-01-20 20:52:29 +00:00
</data>
2013-12-02 12:34:37 +00:00
</openerp>