[IMP] website_quotation -> website_quote

bzr revid: fp@tinyerp.com-20140125230847-qzls5kjbxj51scze
This commit is contained in:
Fabien Pinckaers 2014-01-26 00:08:47 +01:00
parent 2fd0049994
commit fafc132188
5 changed files with 23 additions and 23 deletions

View File

@ -93,7 +93,7 @@ Example: 10% for retailers, promotion of 5 EUR on this product, etc."""),
help='This adds the \'Margin\' on sales order.\n' help='This adds the \'Margin\' on sales order.\n'
'This gives the profitability by calculating the difference between the Unit Price and Cost Price.\n' 'This gives the profitability by calculating the difference between the Unit Price and Cost Price.\n'
'-This installs the module sale_margin.'), '-This installs the module sale_margin.'),
'module_website_quotation': fields.boolean("Allow online quotations and templates", 'module_website_quote': fields.boolean("Allow online quotations and templates",
help='This adds the online quotation'), help='This adds the online quotation'),
'module_sale_journal': fields.boolean("Allow batch invoicing of delivery orders through journals", 'module_sale_journal': fields.boolean("Allow batch invoicing of delivery orders through journals",
help='Allows you to categorize your sales and deliveries (picking lists) between different journals, ' help='Allows you to categorize your sales and deliveries (picking lists) between different journals, '

View File

@ -80,9 +80,9 @@
</group> </group>
</group> </group>
<div name="Sale Features" position="inside"> <div name="Sale Features" position="inside">
<div name="module_website_quotation"> <div name="module_website_quote">
<field name="module_website_quotation" class="oe_inline"/> <field name="module_website_quote" class="oe_inline"/>
<label for="module_website_quotation"/> <label for="module_website_quote"/>
</div> </div>
<div name="module_sale_margin"> <div name="module_sale_margin">
<field name="module_sale_margin" class="oe_inline"/> <field name="module_sale_margin" class="oe_inline"/>

View File

@ -57,7 +57,7 @@ class sale_quote(http.Controller):
'order_valid': (not order.validity_date) or (now <= order.validity_date), 'order_valid': (not order.validity_date) or (now <= order.validity_date),
'days_valid': max(days, 0) 'days_valid': max(days, 0)
} }
return request.website.render('website_quotation.so_quotation', values) return request.website.render('website_quote.so_quotation', values)
@http.route(['/quote/accept'], type='json', auth="public", website=True) @http.route(['/quote/accept'], type='json', auth="public", website=True)
def accept(self, order_id=None, token=None, signer=None, sign=None, **post): def accept(self, order_id=None, token=None, signer=None, sign=None, **post):
@ -133,7 +133,7 @@ class sale_quote(http.Controller):
@http.route(["/quote/template/<model('sale.quote.template'):quote>"], type='http', auth="user", website=True) @http.route(["/quote/template/<model('sale.quote.template'):quote>"], type='http', auth="user", website=True)
def template_view(self, quote, **post): def template_view(self, quote, **post):
values = { 'template': quote } values = { 'template': quote }
return request.website.render('website_quotation.so_template', values) return request.website.render('website_quote.so_template', values)
@http.route(["/quote/add_line/<int:option_id>/<int:order_id>/<token>"], type='http', auth="public", website=True) @http.route(["/quote/add_line/<int:option_id>/<int:order_id>/<token>"], type='http', auth="public", website=True)
def add(self, option_id, order_id, token, **post): def add(self, option_id, order_id, token, **post):

View File

@ -163,7 +163,7 @@
</p> </p>
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<img src="/website_quotation/static/src/img/partner_icon_01.png"/> <img src="/website_quote/static/src/img/partner_icon_01.png"/>
</div> </div>
</div> </div>
</section> </section>
@ -184,7 +184,7 @@
</p> </p>
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<img src="/website_quotation/static/src/img/openerp_gold_partner.png"/> <img src="/website_quote/static/src/img/openerp_gold_partner.png"/>
</div> </div>
</div> </div>
</section> </section>
@ -205,7 +205,7 @@
</p> </p>
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<img src="/website_quotation/static/src/img/partner_icon_02.png" class="img"/> <img src="/website_quote/static/src/img/partner_icon_02.png" class="img"/>
</div> </div>
</div> </div>
</section> </section>
@ -226,7 +226,7 @@
<h2>Test developments automatically</h2> <h2>Test developments automatically</h2>
<div class="row"> <div class="row">
<div class="col-md-5"> <div class="col-md-5">
<img src="/website_quotation/static/src/img/partner_sc_01.png" class="img shadow"/> <img src="/website_quote/static/src/img/partner_sc_01.png" class="img shadow"/>
</div> </div>
<div class="col-md-7"> <div class="col-md-7">
<p class="mt23"> <p class="mt23">

View File

@ -85,14 +85,14 @@
</tbody> </tbody>
</table> </table>
</section> </section>
<t t-call="website_quotation.quotation_toolbar"/> <t t-call="website_quote.quotation_toolbar"/>
<section id="terms" class="container" t-if="quotation.note"> <section id="terms" class="container" t-if="quotation.note">
<h2 class="page-header">Terms &amp; Conditions</h2> <h2 class="page-header">Terms &amp; Conditions</h2>
<p t-field="quotation.note"/> <p t-field="quotation.note"/>
</section> </section>
</template> </template>
<template id="change_quantity" inherit_option_id="website_quotation.pricing" name="Change Quantity"> <template id="change_quantity" inherit_option_id="website_quote.pricing" name="Change Quantity">
<xpath expr="//div[@id='quote_qty']" position="replace"> <xpath expr="//div[@id='quote_qty']" position="replace">
<div class="input-group"> <div class="input-group">
<span class="input-group-addon hidden-print"> <span class="input-group-addon hidden-print">
@ -130,7 +130,7 @@
</template> </template>
<!-- Options:Quotation Chatter: user can reply --> <!-- 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"> <template id="opt_quotation_chatter_post_complete_comment" name="Allow Comments" inherit_option_id="website_quote.chatter" inherit_id="website_quote.chatter">
<xpath expr="//h1" position="after"> <xpath expr="//h1" position="after">
<section class="mb32 css_editable_mode_hidden hidden-print"> <section class="mb32 css_editable_mode_hidden hidden-print">
<form id="comment" t-attf-action="/quote/#{quotation.id}/#{quotation.access_token}/post" method="POST"> <form id="comment" t-attf-action="/quote/#{quotation.id}/#{quotation.access_token}/post" method="POST">
@ -162,9 +162,9 @@
<template id="so_quotation" name="Product Quotation"> <template id="so_quotation" name="Product Quotation">
<t t-call="website.layout"> <t t-call="website.layout">
<t t-set="head"> <t t-set="head">
<script type="text/javascript" src="/website_quotation/static/src/js/website_quotation.js"></script> <script type="text/javascript" src="/website_quote/static/src/js/website_quotation.js"></script>
<script type="text/javascript" src="/website_quotation/static/lib/jSignature/jSignature.min.js"></script> <script type="text/javascript" src="/website_quote/static/lib/jSignature/jSignature.min.js"></script>
<link rel='stylesheet' href='/website_quotation/static/src/css/website_quotation.css'/> <link rel='stylesheet' href='/website_quote/static/src/css/website_quotation.css'/>
<t t-raw="head or ''"/> <t t-raw="head or ''"/>
</t> </t>
<body data-spy="scroll" data-target=".navspy"> <body data-spy="scroll" data-target=".navspy">
@ -190,7 +190,7 @@
</div> </div>
</div> </div>
<hr class="mt0 mb0"/> <hr class="mt0 mb0"/>
<t t-call="website_quotation.navigation_menu"/> <t t-call="website_quote.navigation_menu"/>
<hr class="mt0 mb0"/> <hr class="mt0 mb0"/>
<div t-if="order_valid" class="text-center hidden-print"> <div t-if="order_valid" class="text-center hidden-print">
<input type="hidden" t-att-value="quotation.validity_date" id="validity_date"/> <input type="hidden" t-att-value="quotation.validity_date" id="validity_date"/>
@ -365,13 +365,13 @@
<div class="oe_structure"/> <div class="oe_structure"/>
<a id="pricing"/> <a id="pricing"/>
<t t-call="website_quotation.pricing"/> <t t-call="website_quote.pricing"/>
<a id="options"/> <a id="options"/>
<t t-call="website_quotation.optional_products"/> <t t-call="website_quote.optional_products"/>
<a id="discussion"/> <a id="discussion"/>
<t t-call="website_quotation.chatter"/> <t t-call="website_quote.chatter"/>
</div> </div>
</div> </div>
</div> </div>
@ -388,7 +388,7 @@
</template> </template>
<!-- Options:Quotation Signature --> <!-- Options:Quotation Signature -->
<template id="opt_quotation_signature" name="Ask Signature" inherit_option_id="website_quotation.so_quotation" inherit_id="website_quotation.so_quotation"> <template id="opt_quotation_signature" name="Ask Signature" inherit_option_id="website_quote.so_quotation" inherit_id="website_quote.so_quotation">
<xpath expr="//div[@id='sign-dialog']" position="inside"> <xpath expr="//div[@id='sign-dialog']" position="inside">
<div class="panel panel-default mt16 mb0" id="drawsign"> <div class="panel panel-default mt16 mb0" id="drawsign">
<div class="panel-heading"> <div class="panel-heading">
@ -458,8 +458,8 @@
<template id="so_template" name="SO Template"> <template id="so_template" name="SO Template">
<t t-call="website.layout"> <t t-call="website.layout">
<t t-set="head"> <t t-set="head">
<script type="text/javascript" src="/website_quotation/static/src/js/website_quotation.js"></script> <script type="text/javascript" src="/website_quote/static/src/js/website_quotation.js"></script>
<link rel='stylesheet' href='/website_quotation/static/src/css/website_quotation.css'/> <link rel='stylesheet' href='/website_quote/static/src/css/website_quotation.css'/>
<t t-raw="head or ''"/> <t t-raw="head or ''"/>
</t> </t>
<body data-spy="scroll" data-target=".navspy"> <body data-spy="scroll" data-target=".navspy">