2013-12-02 12:34:37 +00:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<openerp>
|
|
|
|
|
<data>
|
|
|
|
|
<template id="static_layout"><!DOCTYPE html>
|
|
|
|
|
<html t-att-lang="lang.replace('_', '-')"
|
|
|
|
|
t-att-data-editable="'1' if editable else None"
|
|
|
|
|
t-att-data-translatable="'1' if translatable else None"
|
|
|
|
|
t-att-data-view-xmlid="xmlid if editable else None"
|
|
|
|
|
t-att-data-main-object="repr(main_object) if editable else None"
|
|
|
|
|
t-att-data-report-margin-top="40"
|
|
|
|
|
t-att-data-report-innerheight="30">
|
|
|
|
|
<head>
|
|
|
|
|
|
|
|
|
|
<link rel='stylesheet' href='/report/static/src/css/report.css'/>
|
|
|
|
|
|
|
|
|
|
<t t-if="main_object and 'website_meta_title' in main_object">
|
|
|
|
|
<t t-set="title" t-value="main_object.website_meta_title"/>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-if="not title and main_object and 'name' in main_object">
|
|
|
|
|
<t t-set="additional_title" t-value="main_object.name"/>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-if="not title">
|
|
|
|
|
<t t-set="title"><t t-raw="res_company.name"/><t t-if="additional_title"> - <t t-raw="additional_title"/></t></t>
|
|
|
|
|
</t>
|
|
|
|
|
<title><t t-esc="title"/></title>
|
|
|
|
|
<meta name="openerp.company" t-att-value="res_company.name"/>
|
|
|
|
|
<meta name="description" t-att-value="main_object and 'website_meta_description' in main_object
|
|
|
|
|
and main_object.website_meta_description or website_meta_description"/>
|
|
|
|
|
<meta name="keywords" t-att-value="main_object and 'website_meta_keywords' in main_object
|
|
|
|
|
and main_object.website_meta_keywords or website_meta_keywords"/>
|
|
|
|
|
|
|
|
|
|
<!-- Load stylesheets before scripts to avoid blocking -->
|
|
|
|
|
<link rel='stylesheet' href='/web/static/lib/fontawesome/css/font-awesome.css'/>
|
|
|
|
|
<t t-if="editable">
|
|
|
|
|
<link rel='stylesheet' href='/website/static/src/css/snippets.css'/>
|
|
|
|
|
<link rel='stylesheet' href='/website/static/src/css/editor.css'/>
|
|
|
|
|
<link rel='stylesheet' href='/website/static/lib/bootstrap-tour/bootstrap-tour.css'/>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-call="website.theme"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/web/static/lib/es5-shim/es5-shim.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/web/static/lib/underscore/underscore.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/web/static/lib/underscore.string/lib/underscore.string.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/web/static/lib/jquery/jquery.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/lib/bootstrap/js/bootstrap.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
// Bootstrap and jQuery UI conflicts
|
|
|
|
|
$.fn.bstooltip = $.fn.tooltip;
|
|
|
|
|
$.fn.bsbutton = $.fn.button;
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/web/static/lib/qweb/qweb2.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/web/static/src/js/openerpframework.js"></script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/website/static/src/js/website.js"></script>
|
|
|
|
|
<script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.snippets.animation.js"></script>
|
|
|
|
|
|
|
|
|
|
<t t-if="editable" id="editable_scripts_hook">
|
|
|
|
|
<link rel="stylesheet" href="/select2/static/lib/select2/select2.css"/>
|
|
|
|
|
<link rel="stylesheet" href="/website/static/lib/select2-bootstrap-css/select2-bootstrap.css"/>
|
|
|
|
|
<link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/select2/static/lib/select2/select2.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/web/static/lib/ckeditor/ckeditor.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/lib/bootstrap-tour/bootstrap-tour.js"></script>
|
|
|
|
|
<script t-if="not translatable" type="text/javascript" src="/website/static/lib/ace/ace.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/lib/vkbeautify/vkbeautify.0.99.00.beta.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
|
|
|
|
|
<!-- mutation observers shim backed by mutation events (8 < IE < 11, Safari < 6, FF < 14, Chrome < 17) -->
|
|
|
|
|
<script type="text/javascript" src="/website/static/lib//jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/lib/MutationObservers/test/sidetable.js"></script>
|
|
|
|
|
<script type="text/javascript" src='/website/static/lib/nearest/jquery.nearest.js'></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/lib/MutationObservers/MutationObserver.js"></script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/website/static/src/js/website.editor.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/src/js/website.menu.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/src/js/website.mobile.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/src/js/website.seo.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/src/js/website.tour.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/website/static/src/js/website.tour.banner.js"></script>
|
|
|
|
|
<script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.snippets.editor.js"></script>
|
|
|
|
|
<script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.ace.js"></script>
|
|
|
|
|
<script t-if="translatable" type="text/javascript" src="/website/static/src/js/website.translator.js"></script>
|
|
|
|
|
</t>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="wrapwrap">
|
|
|
|
|
<t t-raw="0" />
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
</template>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
<template id="pricing" name="Quotation Pricing">
|
|
|
|
|
<section id="quote" class="tab-pane oe_section">
|
|
|
|
|
<div class="well">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6">
|
|
|
|
|
<address>
|
|
|
|
|
<strong t-field="quotation.partner_id.name"/>
|
|
|
|
|
<br/>
|
|
|
|
|
<t t-esc="quotation.partner_id.street"/>
|
|
|
|
|
<br/>
|
|
|
|
|
<t t-esc="quotation.partner_id.city"/>, <t t-esc="quotation.partner_id.state_id.name"/> <t t-esc="quotation.partner_id.zip"/>
|
|
|
|
|
<br/>
|
|
|
|
|
<abbr title="Phone">P:</abbr> <t t-esc="quotation.partner_id.phone"/>
|
|
|
|
|
</address>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 text-right">
|
|
|
|
|
<p>
|
|
|
|
|
<em>Date: <t t-esc="quotation.date_order"/></em>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<em>Quotation #: <t t-esc="quotation.name"/></em>
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<h1>Quotation</h1>
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</div>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Product</th>
|
|
|
|
|
<th>Description</th>
|
|
|
|
|
<th>#</th>
|
|
|
|
|
<th class="text-center">Unit Price</th>
|
|
|
|
|
<th class="text-center">Subtotal</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<t t-foreach="quotation.order_line" t-as="line">
|
2013-12-02 12:34:37 +00:00
|
|
|
|
<tr>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
<td class="col-md-9"><em><t t-esc="line.product_id.name"/></em></td>
|
|
|
|
|
<td class="col-md-9"><em><t t-esc="line.name"/></em></td>
|
|
|
|
|
<td class="col-md-1" style="text-align: center"><t t-esc="line.product_uom_qty"/></td>
|
|
|
|
|
<td class="col-md-1 text-center"><t t-esc="line.price_unit"/></td>
|
|
|
|
|
<td class="col-md-1 text-center"><t t-esc="line.price_subtotal"/></td>
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</tr>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
</t>
|
|
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td class="text-right">
|
|
|
|
|
<p>
|
|
|
|
|
<strong>Untaxed Amount: </strong>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<strong>Tax: </strong>
|
|
|
|
|
</p></td>
|
|
|
|
|
<td class="text-center">
|
|
|
|
|
<p>
|
|
|
|
|
<strong t-field="quotation.amount_untaxed"
|
|
|
|
|
t-field-options='{
|
|
|
|
|
"widget": "monetary",
|
|
|
|
|
"display_currency": "website.pricelist_id.currency_id"
|
2013-12-02 12:34:37 +00:00
|
|
|
|
}'></strong>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<!-- <strong><t t-esc="quotation.amount_taxed"/></strong>-->
|
|
|
|
|
</p>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td class="text-right"><strong>Total: </strong></td>
|
|
|
|
|
<td class="text-center text-success">
|
|
|
|
|
<strong
|
|
|
|
|
t-field="quotation.amount_total"
|
|
|
|
|
t-field-options='{"widget": "monetary",
|
|
|
|
|
"display_currency":"website.pricelist_id.currency_id"
|
|
|
|
|
}'></strong>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</div>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="quote_status">
|
|
|
|
|
<div class="navbar navbar-default navbar-fix-top">
|
|
|
|
|
<div class="collapse navbar-collapse navbar-top-collapse">
|
|
|
|
|
<ul class="nav navbar-nav" id="top_menu">
|
|
|
|
|
<li>
|
|
|
|
|
<a type="submit" t-if="quotation.state != 'accept'" t-href="/quote/#{ quotation.access_token }/accept">
|
|
|
|
|
<span class="fa-stack">
|
|
|
|
|
<i class="fa fa-circle fa-stack-2x"></i>
|
|
|
|
|
<i class="fa fa-check fa-stack-1x fa-inverse fa-success"></i>
|
|
|
|
|
</span>
|
|
|
|
|
Accept
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</a>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a type="submit" t-if="quotation.state != 'cancel'" t-href="/quote/#{ quotation.access_token }/decline">
|
|
|
|
|
<span class="fa-stack">
|
|
|
|
|
<i class="fa fa-circle fa-stack-2x"></i>
|
|
|
|
|
<i class="fa fa-times fa-stack-1x fa-inverse"></i>
|
|
|
|
|
</span>
|
|
|
|
|
Decline
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</a>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#chat">
|
|
|
|
|
<span class="fa-stack">
|
2013-12-06 13:57:20 +00:00
|
|
|
|
<i class="fa fa-circle fa-stack-2x main-color"></i>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
<i class="fa fa-comment fa-stack-1x fa-inverse"></i>
|
|
|
|
|
</span>Discuss
|
2013-12-06 13:57:20 +00:00
|
|
|
|
<sup class="label label-info"><t t-esc="len(quotation.message_ids)"/></sup>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="chatter">
|
|
|
|
|
<div id="chat" class="panel panel-default widget">
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
<span class="glyphicon glyphicon-comment"></span>
|
|
|
|
|
<h3 class="panel-title">Recent Comments</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<ul class="list-group">
|
|
|
|
|
<t t-foreach="quotation.message_ids" t-as="message">
|
2013-12-06 13:57:20 +00:00
|
|
|
|
<t t-if="message.type == 'email'">
|
|
|
|
|
<li class="list-group-item">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-xs-2 col-md-1">
|
|
|
|
|
<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"/>
|
|
|
|
|
</div>
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-12-06 13:57:20 +00:00
|
|
|
|
</li>
|
|
|
|
|
</t>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
</t>
|
|
|
|
|
</ul>
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-12-06 10:43:39 +00:00
|
|
|
|
<form id="post" accept-charset="UTF-8" method="POST" t-att-action="'/quote/%%s/post#post' %% quotation.access_token">
|
|
|
|
|
<textarea rows="3" id="new_message" name="new_message" placeholder="Your Comment....." class="form-control span7"> </textarea>
|
|
|
|
|
<button type="submit" t-att-id="quotation.access_token" class="btn btn-info">Post your Comment</button>
|
|
|
|
|
</form>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="so_quotation" name="Product Quotation">
|
|
|
|
|
<t t-call="website_sale_quote.static_layout">
|
|
|
|
|
<div class="col-xs-12 col-md-8 tab-content">
|
|
|
|
|
<t t-call="website_sale_quote.quote_status"/>
|
2013-12-06 13:57:20 +00:00
|
|
|
|
<section id="introduction11" class="tab-pane active oe_section jumbotron" t-field="quotation.website_description">
|
2013-12-06 10:43:39 +00:00
|
|
|
|
</section>
|
|
|
|
|
<t t-foreach="quotation.order_line" t-as="line">
|
|
|
|
|
<section class="tab-pane oe_section jumbotron" t-att-id="line.id">
|
|
|
|
|
<div t-field="line.website_description" class="oe_structure"/>
|
|
|
|
|
</section>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-call="website_sale_quote.pricing"/>
|
|
|
|
|
<t t-call="website_sale_quote.chatter"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-6 col-md-4 sidebar oe_section" id="sidebar">
|
|
|
|
|
<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>
|
|
|
|
|
<li><a href="#quote" data-toggle="tab"><i class="icon-chevron-right"></i> Quotation</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
2013-12-02 12:34:37 +00:00
|
|
|
|
</template>
|
|
|
|
|
</data>
|
|
|
|
|
</openerp>
|