f7f3ba68f501f90e49e63e58fe46bf7174e816ed
[odoo/odoo.git] / addons / website_sale / views / website_sale.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3 <data>
4
5 <!-- Layout add nav and footer -->
6
7 <template id="editor_head" inherit_id="website.editor_head" name="Shop Editor" groups="base.group_sale_manager">
8   <xpath expr="//script[@id='website_tour_js']" position="after">
9       <script type="text/javascript" src="/website_sale/static/src/js/website_sale.editor.js"></script>
10       <script type="text/javascript" src="/website_sale/static/src/js/website.tour.shop.js"></script>
11   </xpath>
12 </template>
13
14 <template id="header" inherit_id="website.layout" name="Header Shop My Cart Link">
15   <xpath expr="//header//ul[@id='top_menu']/li" position="before">
16       <li t-att-class="(not website_sale_order or not website_sale_order.get_number_of_products()) and 'hidden' or ''">
17           <a href="/shop/mycart/">
18               <i class="fa fa-shopping-cart"></i>
19               My cart <sup t-attf-class="my_cart_quantity label label-primary"
20                             t-esc="website_sale_order and website_sale_order.get_number_of_products() or ''"/>
21           </a>
22       </li>
23   </xpath>
24 </template>
25
26 <!-- List of categories -->
27
28 <template id="categories_recursive" name="Category list">
29   <li t-att-class="category.id == search.get('category') and 'active' or ''">
30       <a t-href="/shop/category/#{ slug(category) }/" t-field="category.name"></a>
31       <ul t-if="category.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
32           <t t-foreach="category.child_id" t-as="category">
33               <t t-call="website_sale.categories_recursive"/>
34           </t>
35       </ul>
36   </li>
37 </template>
38
39 <!-- Product list -->
40
41 <template id="search" name="Search hidden fields">
42   <input type="hidden" name="category" t-att-value="search.get('category') or ''"/>
43   <input type="hidden" name="filters" t-att-value="search.get('filters') or ''"/>
44   <div class="input-group">
45     <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search.get('search') or ''"/>
46     <span class="input-group-btn">
47       <button class="btn btn-default" type="submit"><i class="fa fa-search"/></button>
48     </span>
49   </div>
50 </template>
51
52 <template id="products_cart" name="Shopping cart">
53   <div class="ribbon-wrapper">
54     <div class="ribbon btn btn-danger">Sale</div>
55   </div>
56   <div class="oe_product_image">
57       <a t-href="/shop/product/#{ slug(product) }/" t-keep-query="category,search,filters">
58           <span t-field="product.image" t-field-options='{"widget": "image"}'/>
59       </a>
60   </div>
61   <section>
62       <h5><strong><a t-href="/shop/product/#{ slug(product) }/" t-keep-query="category,search,filters" t-field="product.name"/></strong></h5>
63       <div class="product_price" t-if="product.product_variant_ids">
64           <b>
65               <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
66                 <del class="text-danger"
67                   t-field="product.product_variant_ids[0].lst_price" t-field-options='{
68                        "widget": "monetary",
69                        "display_currency": "website.pricelist_id.currency_id"
70                   }'/>&amp;nbsp;
71               </t>
72               <span t-field="product.product_variant_ids[0].price"  t-field-options='{
73                    "widget": "monetary",
74                    "display_currency": "website.pricelist_id.currency_id"
75                }'/>
76           </b>
77       </div>
78   </section>
79 </template>
80
81 <template id="products" name="Products">
82   <t t-call="website.layout">
83       <t t-set="head">
84           <script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
85           <link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
86           <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
87           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
88           <t t-raw="head or ''"/>
89       </t>
90       <t t-set="additional_title">Shop</t>
91       <div id="wrap" class="js_sale">
92         <div class="oe_structure"/>
93         <div class="container oe_website_sale">
94           <div class="products_pager">
95             <div class="row">
96               <form action="/shop/" method="get" class="pagination form-inline col-md-3">
97                   <t t-call="website_sale.search" />
98               </form>
99               <t t-call="website.pager"/>
100             </div>
101           </div>
102           <div class='row'>
103             <div class="hidden" id="products_grid_before"></div>
104             <div class="col-md-12" id="products_grid">
105               <table width="100%">
106                 <tbody>
107                   <tr t-ignore="true">
108                     <td t-foreach="range(0,rows)" t-as="row" t-attf-width="#{100/rows}%"></td>
109                   </tr>
110                   <tr t-foreach="bins" t-as="tr_product">
111                     <t t-foreach="tr_product" t-as="td_product">
112                       <t t-if="td_product">
113                       <t t-set="product" t-value="td_product['product']"/>
114                       <td t-att-colspan="td_product['x'] != 1 and td_product['x']"
115                           t-att-rowspan="td_product['y'] != 1 and td_product['y']"
116                           t-attf-class="oe_product oe_grid oe-height-#{td_product['y']*2} #{ td_product['class'] }">
117
118                           <div class="oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
119
120                             <div class="css_options" t-ignore="true" groups="base.group_website_publisher">
121                               <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
122                                 <a class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></a>
123                                 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
124                                   <li class='dropdown-submenu'>
125                                     <a tabindex="-1" href="#">Size</a>
126                                     <ul class="dropdown-menu" name="size">
127                                       <li><a href="#">
128                                         <table>
129                                           <tr>
130                                             <td class="selected"></td>
131                                             <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
132                                             <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
133                                             <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
134                                           </tr>
135                                           <tr>
136                                             <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
137                                             <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
138                                             <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
139                                             <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
140                                           </tr>
141                                           <tr>
142                                             <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
143                                             <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
144                                             <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
145                                             <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
146                                           </tr>
147                                           <tr>
148                                             <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
149                                             <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
150                                             <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
151                                             <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
152                                           </tr>
153                                         </table>
154                                       </a></li>
155                                     </ul>
156                                   </li>
157                                   <li class='dropdown-submenu'>
158                                     <a tabindex="-1" href="#">Styles</a>
159                                     <ul class="dropdown-menu" name="style">
160                                       <t t-foreach="styles" t-as="style">
161                                         <li t-att-class="style_in_product(style, product) and 'active' or ''"><a href="#" t-att-data-id="style.id" t-att-data-class="style.html_class"><t t-esc="style.name"/></a></li>
162                                       </t>
163                                     </ul>
164                                   </li>
165                                   <li class='dropdown-submenu'>
166                                       <a tabindex="-1" href="#">Promote</a>
167                                       <ul class="dropdown-menu" name="sequence">
168                                           <li><a href="#" class="js_go_to_top">Push to top</a></li>
169                                           <li><a href="#" class="js_go_up">Push up</a>
170                                           </li>
171                                           <li><a href="#" class="js_go_down">Push down</a></li>
172                                           <li><a href="#" class="js_go_to_bottom">Push to bottom</a></li>
173                                       </ul>
174                                   </li>
175                                 </ul>
176                               </div>
177                             </div>
178
179                             <t t-call="website_sale.products_cart"/>
180                           </div>
181
182                       </td>
183                       </t>
184                       <td t-if="td_product == None"/>
185                     </t>
186                   </tr>
187                 </tbody>
188               </table>
189               <t t-if="not bins">
190                 <div class="text-center text-muted">
191                   <h3 class="css_editable_display">No product found</h3>
192                   <h3 class="css_non_editable_mode_hidden">There isn't available products right now, click <a t-href="/page/website.contactus">here</a> to contact us</h3>
193                   <t groups="base.group_website_publisher">
194                     <t groups="base.group_sale_manager">
195                       <p>Click on "Content" to define a new product or "Help" for more informations.</p>
196                       <img src="/website/static/src/img/content_here.png"/>
197                       <p>In the backend's product form contains information to simplify the sale process: price, notes in the quotation, accounting data, procurement methods, etc.</p>
198                     </t>
199                   </t>
200                 </div>
201               </t>
202             </div>
203           </div>
204           <div class="products_pager">
205               <t t-call="website.pager"/>
206           </div>
207         </div>
208         <div class="oe_structure mb32"/>
209       </div>
210   </t>
211 </template>
212
213 <!-- Product Description-->
214
215 <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
216   <xpath expr="//div[@class='product_price']" position="before">
217       <div class="text-info oe_subdescription oe_shadow" t-field="product.description_sale"/>
218       <div class="text-info oe_subdescription" t-field="product.description_sale"/>
219   </xpath>
220 </template>
221
222 <!-- Add to cart button-->
223
224 <template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
225   <xpath expr="//div[@class='product_price']" position="inside">
226       <form action="/shop/add_cart/" method="post" style="display: inline-block;">
227           <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
228           <button type="submit" class="fa fa-shopping-cart"/>
229       </form>
230   </xpath>
231 </template>
232
233 <!-- List view of products -->
234
235 <template id="list_view" inherit_option_id="website_sale.products" name="List View">
236   <xpath expr="//div[@id='products_grid']//table" position="replace">
237     <t t-foreach="products" t-as="product">
238       <div class="oe_product oe_list oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
239         <t t-call="website_sale.products_cart"/>
240       </div>
241     </t>
242   </xpath>
243 </template>
244
245
246 <!-- product -->
247 <template id="404">
248   <t t-call="website.layout">
249       <div id="wrap">
250           <div class="oe_structure oe_empty">
251               <div class="container">
252                   <h1 class="mt32">Product not found!</h1>
253                   <p>Sorry, this product is not available anymore.</p>
254                   <p><a t-href="/shop/">Return to the product list.</a></p>
255               </div>
256           </div>
257       </div>
258   </t>
259 </template>
260
261 <template id="product" name="Product">
262   <t t-call="website.layout">
263       <t t-set="head">
264           <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
265           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
266           <link rel='stylesheet' href='/website_sale/static/src/css/website_mail.css'/>
267       </t>
268       <t t-set="additional_title" t-value="product.name"/>
269       <div id="wrap" class="js_sale">
270
271         <section class="container mt8">
272           <div class="row">
273             <div class="col-sm-4">
274                 <ol class="breadcrumb">
275                     <li><a href="/shop">Products</a></li>
276                     <li t-if="search.get('category')"><a t-href="/shop/" t-keep-query="category,search,filters"><span t-field="category.name"/></a></li>
277                     <li class="active"><span t-field="product.name"/></li>
278                 </ol>
279             </div>
280             <div class="col-sm-3">
281               <form action="/shop/" method="get" class="pull-right">
282                   <t t-call="website_sale.search" />
283               </form>
284             </div>
285             <div class="col-sm-4" groups="base.group_sale_manager">
286                 <t t-call="website.publish_management">
287                   <t t-set="object" t-value="product"/>
288                   <t t-set="publish_edit" t-value="True"/>
289                 </t>
290             </div>
291           </div>
292         </section>
293
294         <section class="container oe_website_sale" id="product_detail">
295           <div class="row">
296             <div class="col-sm-7 col-md-7 col-lg-7">
297                 <span t-field="product.image" t-field-options='{"widget": "image", "class": "product_detail_img"}'/>
298             </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
299                 <h1 t-field="product.name">Product Name</h1>
300
301                 <form action="/shop/add_cart/" class="js_add_cart_json" method="POST">
302                     <input type="hidden" t-if="len(product.product_variant_ids) == 1" name="product_id" t-att-value="product.product_variant_ids[0].id"/>
303                     <t t-if="len(product.product_variant_ids) &gt; 1">
304                         <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="variant_id">
305                             <input type="radio" name="product_id" t-att-value="variant_id.id" t-att-checked="variant_id == product.product_variant_ids[0] or None"/>
306                             <t t-esc="variant_id.variants or ''">Standard</t>
307                             <span class="badge" t-if="variant_id.price_extra">
308                                 <t t-esc="variant_id.price_extra > 0 and '+' or ''"/><span t-field="variant_id.price_extra" t-field-options='{
309                                              "widget": "monetary",
310                                              "display_currency": "website.pricelist_id.currency_id"
311                                          }'/>
312                             </span>
313                         </label>
314                     </t>
315
316                     <div class="product_price mt16" t-if="product.product_variant_ids">
317                         <h4>
318                             <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
319                             <span class="text-danger" style="text-decoration: line-through;"
320                               t-field="product.product_variant_ids[0].lst_price"
321                               t-field-options='{
322                                  "widget": "monetary",
323                                  "display_currency": "website.pricelist_id.currency_id"
324                              }'/><br/>
325                             </t>
326                             <b class="oe_price"
327                               t-field="product.product_variant_ids[0].price"
328                               t-field-options='{
329                                  "widget": "monetary",
330                                  "display_currency": "website.pricelist_id.currency_id"
331                              }'/>
332                         </h4>
333                     </div>
334                     <button class="btn btn-primary btn-lg mt8">Add to Cart</button>
335                     <hr t-if="product.description_sale"/>
336                     <p t-field="product.description_sale" class="text-muted"/>
337                     <hr/>
338                     <p class="text-muted">
339                         30-day money-back guarantee<br/>
340                         Free Shipping in U.S.<br/>
341                         Buy now, get in 2 days
342                     </p>
343                 </form>
344             </div>
345           </div>
346         </section>
347         <div t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
348       </div>
349   </t>
350 </template>
351
352 <!-- Product option: related / recommended products -->
353 <template id="recommended_products" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Recommended Products">
354   <xpath expr="//div[@id='product_full_description']" position="after">
355       <div class="container mt32" t-if="product.recommended_products()">
356           <h3>Customers who have bought this product also bought:</h3>
357           <div class='row mt16' style="margin-left: 15px !important;">
358           <t t-foreach="product.recommended_products()" t-as="product">
359               <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
360                   <div class='mt16 text-center'>
361                       <span t-field="product.image_small"/>
362                       <h5>
363                           <a t-href="/shop/product/#{ slug(product) }/"
364                              style="display: block">
365                               <span t-field='product.name'
366                                     style="display: block"/>
367                           </a>
368                       </h5>
369                   </div>
370               </div>
371           </t>
372           </div>
373       </div>
374   </xpath>
375 </template>
376
377 <!-- Product option: characteristics -->
378 <template id="product_characteristics" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Product Characteristics" groups="product.group_product_characteristics">
379 <xpath expr="//p[@t-field='product.description_sale']" position="after">
380   <hr t-if="product.website_characteristic_ids"/>
381   <p class="text-muted">
382     <t t-set="attr" t-value="None"/>
383     <t t-foreach="product.website_characteristic_ids" t-as="characteristic"><br t-if="attr and characteristic.characteristic_id.id != attr"/><t t-if="characteristic.characteristic_id.id != attr"><span t-field="characteristic.characteristic_id"/>: </t><t t-if="characteristic.characteristic_id.id == attr">, </t><t t-if="characteristic.characteristic_id.type == 'distinct'"><span t-field="characteristic.value_id"/></t><t t-if="characteristic.characteristic_id.type == 'float'"><span t-field="characteristic.value"/></t><t t-set="attr" t-value="characteristic.characteristic_id.id"/></t>
384   </p>
385 </xpath>
386 </template>
387
388 <!-- Product options: OpenChatter -->
389 <template id="product_option_openchatter" inherit_option_id="website_sale.product" name="Discussion">
390     <xpath expr="//div[@t-field='product.website_description']" position="after">
391         <hr class="mb32"/>
392         <section class="container">
393             <div class="row col-md-10 col-md-offset-1">
394                 <div class="text-muted">
395                     <h3 class="fa fa-comment-o">
396                         <a id="comments">
397                             <t t-if="len(product.website_message_ids) &lt;= 1" ><t t-esc="len(product.website_message_ids)"/> comment</t>
398                             <t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comments</t>
399                         </a>
400                     </h3>
401                 </div>
402                 <ul class="media-list" id="comments-list"  t-if="product.website_message_ids">
403                     <li t-foreach="product.website_message_ids" t-as="message" class="media">
404                         <div class="media-body oe_msg">
405                             <img class="media-object pull-left oe_msg_avatar" t-att-src="'/website/image?model=res.partner&amp;field=image_small&amp;id='+str(message.author_id.id)" style="width: 50px; margin-right: 10px;"/>
406                             <div class="media-body oe_msg_content">
407                                 <t t-call="website.publish_short">
408                                     <t t-set="object" t-value="message"/>
409                                 </t>
410                                 <h5 class="media-heading">
411                                     <span t-field="message.author_id"/> <small>on <span t-field="message.date"/></small>
412                                 </h5>
413                                 <div t-field="message.body"/>
414                                 <div>
415                                     <div class="oe_msg_attachment" t-foreach='message.attachment_ids' t-as='attachment'>
416                                         <a t-att-href="'/mail/download_attachment?model=mail.message&amp;id='+str(message.id)+'&amp;method=download_attachment&amp;attachment_id='+str(attachment.id)" target="_blank">
417                                             <t t-if="attachment.file_type == 'webimage'">
418                                                 <img t-att-src="'/web/binary/image?model=ir.attachment&amp;field=datas&amp;id=' + str(attachment.id) + '&amp;resize=100,80'"
419                                                     class='oe_attachment_embedded'></img>
420                                             </t>
421                                             <t t-if="attachment.file_type != 'webimage'">
422                                                 <img t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"
423                                                     class='oe_attachment_webimage'></img>
424                                             </t>
425                                             <div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
426                                         </a>
427                                     </div>
428                                 </div>
429                             </div>
430                         </div>
431                     </li>
432                 </ul>
433                 <div class="css_editable_mode_hidden">
434                     <form id="comment" t-attf-action="/shop/product/#{product.id}/comment"
435                             method="POST">
436                         <img class="img pull-left img-rounded" t-att-src="'/website/image?model=res.partner&amp;field=image_small&amp;id='+str(user_id.partner_id.id)" style="width: 50px; margin-right: 10px;"/>
437                         <div class="pull-left mb32" style="width: 75%%">
438                             <textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
439                             <button type="submit" class="btn btn-primary mt8">Post</button>
440                         </div>
441                     </form>
442                 </div>
443             </div>
444         </section>
445     </xpath>
446 </template>
447
448 <!-- Page Shop my cart -->
449
450 <template id="mycart" name="Your Cart">
451   <t t-call="website.layout">
452       <t t-set="head">
453           <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
454           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
455           <t t-raw="head or ''"/>
456       </t>
457       <div id="wrap">
458         <div class="container oe_website_sale">
459
460           <ul class="wizard pull-right">
461               <li class="text-primary">Review Order<span class="chevron"></span></li>
462               <li class="text-muted">Shipping &amp; Billing<span class="chevron"></span></li>
463               <li class="text-muted">Payment<span class="chevron"></span></li>
464               <li class="text-muted">Confirmation<span class="chevron"></span></li>
465           </ul>
466           <h1 class="mb32">Shopping Cart</h1>
467           <div class="row">
468               <div class="col-md-8 col-sm-9 oe_mycart">
469                   <div t-if="not website_sale_order or not website_sale_order.website_order_line" class="well well-lg">
470                       Your cart is empty!
471                   </div>
472                   <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.website_order_line">
473                       <colgroup>
474                           <col width="100"/>
475                           <col/>
476                           <col width="100"/>
477                           <col width="120"/>
478                       </colgroup>
479                       <thead>
480                           <tr>
481                               <th colspan="2">Product</th>
482                               <th>Price</th>
483                               <th>Quantity</th>
484                           </tr>
485                       </thead>
486                       <tbody>
487                           <tr t-foreach="website_sale_order.website_order_line" t-as="line">
488                               <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
489                               <td align="center" t-if="line.product_id.product_tmpl_id">
490                                   <span t-field="line.product_id.image_small"
491                                         t-field-options='{"widget": "image", "class": "img-rounded"}'/>
492                               </td>
493                               <td t-if="line.product_id.product_tmpl_id">
494                                   <div>
495                                       <a t-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }/">
496                                           <strong t-field="line.product_id.name"/>
497                                           <t t-if="line.product_id.variants">(<t t-esc="line.product_id.variants"/>)</t>
498                                       </a>
499                                   </div>
500                                   <div class="text-muted" t-field="line.product_id.description_sale"/>
501                               </td>
502                               <td class="text-center">
503                                  <del class="text-danger" t-if="line.product_id.lst_price &gt; line.price_unit">
504                                      <span t-field="line.product_id.lst_price" t-field-options='{
505                                          "widget": "monetary",
506                                          "display_currency": "website.pricelist_id.currency_id"
507                                      }'/>
508                                  </del>
509                                  <span t-field="line.price_unit" t-field-options='{
510                                      "widget": "monetary",
511                                      "display_currency": "website.pricelist_id.currency_id"
512                                  }'/>
513                               </td>
514                               <td>
515                                   <div class="input-group">
516                                       <span class="input-group-addon">
517                                           <a t-href="../change_cart/#{ line.id }/?remove=True" class="mb8 js_add_cart_json">
518                                               <i class="fa fa-minus-square"></i>
519                                           </a>
520                                       </span>
521                                       <input type="text" class="js_quantity form-control"
522                                           t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
523                                       <span class="input-group-addon">
524                                           <a t-href="../change_cart/#{ line.id }/" class="mb8 float_left js_add_cart_json">
525                                               <i class="fa fa-plus-square"></i>
526                                           </a>
527                                       </span>
528                                   </div>
529
530                               </td>
531                           </tr>
532                       </tbody>
533                   </table>
534                   <t t-call="website_sale.total"/>
535                   <div class="clearfix"/>
536                   <a href="/shop" class="btn btn-default mb32"><span class="fa fa-long-arrow-left"/> Continue Shopping</a>
537                   <a t-if="website_sale_order and website_sale_order.website_order_line" href="/shop/checkout/" class="btn btn-primary pull-right mb32">Process Checkout <span class="fa fa-long-arrow-right"/></a>
538                   <div class="oe_structure"/>
539               </div>
540               <div class="col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id="right_column">
541                   <h4>Policies</h4>
542                   <ul class="list-unstyled mb32">
543                       <li>&#9745; 30-days money-back guarantee</li>
544                       <li>&#9745; Invoice sent by e-Mail</li>
545                   </ul>
546                   <h4>Secure Payment</h4>
547                   <ul class="list-unstyled mb32">
548                       <li>&#9745; 256 bit encryption</li>
549                       <li>&#9745; Processed by Ogone</li>
550                   </ul>
551               </div>
552           </div>
553
554         </div>
555         <div class="oe_structure"/>
556       </div>
557   </t>
558 </template>
559
560 <!-- Page Shop -->
561
562 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
563   <xpath expr="//div[@id='products_grid_before']" position="inside">
564       <ul class="nav nav-pills nav-stacked mt16">
565           <li t-att-class=" '' if search.get('category') else 'active' "><a href="/shop/">All Products</a></li>
566           <t t-foreach="categories" t-as="category">
567               <t t-call="website_sale.categories_recursive"/>
568           </t>
569       </ul>
570   </xpath>
571   <xpath expr="//div[@id='products_grid_before']" position="attributes">
572       <attribute name="class">col-md-3 hidden-xs</attribute>
573   </xpath>
574   <xpath expr="//div[@id='products_grid']" position="attributes">
575       <attribute name="class">col-md-9</attribute>
576   </xpath>
577 </template>
578
579 <template id="products_characteristics" inherit_id="website_sale.products" inherit_option_id="website_sale.products" name="Product Characteristic's Filters" groups="product.group_product_characteristics">
580   <xpath expr="//div[@id='products_grid_before']" position="inside">
581       <form t-action="/shop/filters/" method="post" t-keep-query="category,search">
582           <ul class="nav nav-pills nav-stacked mt16">
583               <t t-set="characteristic_ids" t-value="Ecommerce.get_characteristic_ids()"/>
584               <t t-foreach="characteristic_ids" t-as="characteristic_id">
585                 <t t-if="characteristic_id.visible">
586                   <li t-if="characteristic_id.value_ids and characteristic_id.type == 'distinct'">
587                       <div t-field="characteristic_id.name"/>
588                       <ul class="nav nav-pills nav-stacked">
589                           <t t-foreach="characteristic_id.value_ids" t-as="value_id">
590                               <li t-att-class="Ecommerce.has_search_filter(characteristic_id.id, value_id.id) and 'active' or ''">
591                                   <label style="margin: 0 20px;">
592                                       <input type="checkbox" t-att-name="'att-%s-%s' % (characteristic_id.id, value_id.id)"
593                                           t-att-checked="Ecommerce.has_search_filter(characteristic_id.id, value_id.id) and 'checked' or ''"/>
594                                       <span style="font-weight: normal" t-field="value_id.name"/>
595                                   </label>
596                               </li>
597                           </t>
598                       </ul>
599                   </li>
600                   <li t-if="characteristic_id.type == 'float' and characteristic_id.float_min != characteristic_id.float_max">
601                       <div t-field="characteristic_id.name"/>
602                       <t t-set="characteristic" t-value="Ecommerce.has_search_filter(characteristic_id.id)"/>
603                       <div style="margin: 0 20px;" class="js_slider"
604                         t-att-data-id="characteristic_id.id"
605                         t-att-data-value-min="characteristic and characteristic[1][0] or characteristic_id.float_min"
606                         t-att-data-value-max="characteristic and characteristic[1][1] or characteristic_id.float_max"
607                         t-att-data-min="characteristic_id.float_min"
608                         t-att-data-max="characteristic_id.float_max"></div>
609                   </li>
610                 </t>
611               </t>
612           </ul>
613           <button class="btn btn-xs btn-primary mt16">Apply filter</button>
614           <a t-href="/shop/" t-keep-query="category,search" class="btn btn-xs btn-default mt16">Cancel filter</a>
615       </form>
616   </xpath>
617   <xpath expr="//div[@id='products_grid_before']" position="attributes">
618       <attribute name="class">col-md-3 hidden-xs</attribute>
619   </xpath>
620   <xpath expr="//div[@id='products_grid']" position="attributes">
621       <attribute name="class">col-md-9</attribute>
622   </xpath>
623 </template>
624
625 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in my cart">
626   <xpath expr="//table[@id='mycart_products']" position="after">
627       <table t-if="suggested_products" class='table table-striped table-condensed'>
628           <colgroup>
629               <col width="80"/>
630               <col/>
631               <col width="100"/>
632               <col width="120"/>
633           </colgroup>
634           <thead>
635               <tr>
636                   <th colspan="2">Suggested products</th>
637               </tr>
638           </thead>
639           <tbody>
640               <tr t-foreach="suggested_products" t-as="product">
641
642                   <td>
643                       <a t-href="/shop/product/#{ slug(product.product_tmpl_id) }/">
644                           <span t-field="product.image_small"
645                                 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
646                       </a>
647                   </td>
648                   <td>
649                       <div>
650                           <a t-href="/shop/product/#{ slug(product.product_tmpl_id) }/">
651                               <strong t-field="product.name"/>
652                           </a>
653                       </div>
654                       <div class="text-muted" t-field="product.description_sale"/>
655                   </td>
656                   <td>
657                       <span t-field="product.lst_price" t-field-options='{
658                           "widget": "monetary",
659                           "display_currency": "website.pricelist_id.currency_id"
660                       }'/>
661                   </td>
662                   <td class="text-center">
663                       <form action="/shop/add_cart/" method="post">
664                           <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
665                           <button type="submit" class="btn btn-link"><strong>Add to Cart</strong></button>
666                       </form>
667                   </td>
668               </tr>
669           </tbody>
670       </table>
671   </xpath>
672 </template>
673
674 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
675   <xpath expr="//div[@id='right_column']" position="inside">
676       <h4>Coupon Code</h4>
677       <p>
678           Have a coupon code? Fill in this field and apply.
679       </p>
680       <form t-if="website_sale_order and website_sale_order.website_order_line" action="/shop/mycart/" method="post" class="mb32">
681           <div class="input-group">
682               <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
683               <div class="input-group-btn">
684                   <button class="btn btn-default">Apply</button>
685               </div>
686           </div>
687       </form>
688   </xpath>
689 </template>
690
691
692 <!-- Page confirm my cart -->
693
694 <template id="checkout">
695   <t t-call="website.layout">
696     <t t-set="head">
697         <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
698         <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
699         <t t-raw="head or ''"/>
700     </t>
701     <t t-set="additional_title">Shop - Checkout</t>
702     <div id="wrap">
703       <div class="container oe_website_sale">
704           <ul class="wizard pull-right">
705               <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
706               <li class="text-primary">Shipping &amp; Billing<span class="chevron"></span></li>
707               <li class="text-muted">Payment<span class="chevron"></span></li>
708               <li class="text-muted">Confirmation<span class="chevron"></span></li>
709           </ul>
710           <h1>Your Address</h1>
711           <form action="/shop/confirm_order/" method="post">
712
713           <div class="row">
714           <div class="col-md-8 oe_mycart">
715               <h3 class="page-header mt16">Billing Information
716                   <small groups="base.group_public"> or
717                       <a t-if="not partner" t-attf-href="/web#action=redirect&amp;url=#{ request.httprequest.url }">sign in</a>
718                   </small>
719               </h3>
720               <div class="row">
721                   <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
722                       <label class="control-label" for="contact_name">Your Name</label>
723                       <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
724                   </div>
725                   <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''} col-lg-6">
726                       <label class="control-label" for="company" style="font-weight: normal">Your Company</label>
727                       <input type="text" name="company" class="form-control" t-att-value="checkout.get('company')"/>
728                   </div>
729                   <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
730                       <label class="control-label" for="contact_name">Email</label>
731                       <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
732                   </div>
733                   <div t-attf-class="form-group #{error.get('phone') and 'has-error' or ''} col-lg-6">
734                       <label class="control-label" for="phone">Phone</label>
735                       <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
736                   </div>
737
738                   <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
739                       <label class="control-label" for="street">Street</label>
740                       <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
741                   </div>
742                   <div class="clearfix"/>
743
744                   <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
745                       <label class="control-label" for="city">City</label>
746                       <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
747                   </div>
748                   <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
749                       <label class="control-label" for="zip">Zip / Postal Code</label>
750                       <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
751                   </div>
752                   <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
753                       <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
754                       <select name="state_id" class="form-control">
755                           <option value="">select...</option>
756                           <t t-foreach="states or []" t-as="state">
757                               <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
758                           </t>
759                       </select>
760                   </div>
761                   <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
762                       <label class="control-label" for="contact_name">Country</label>
763                       <select name="country_id" class="form-control">
764                           <option value="">Country...</option>
765                           <t t-foreach="countries or []" t-as="country">
766                               <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
767                           </t>
768                       </select>
769                   </div>
770
771                   <div class="clearfix"/>
772
773                   <div class="form-group col-lg-6" groups="sale.group_delivery_invoice_address">
774                       <label>
775                           <input type="checkbox" name="shipping_different" t-att-checked="shipping"/>
776                           Ship to a different address
777                       </label>
778                   </div>
779               </div>
780               <div class="js_shipping row mb16" t-att-style="not shipping and 'display:none' or ''" groups="sale.group_delivery_invoice_address">
781                   <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
782
783                   <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
784                       <label class="control-label" for="contact_name">Name (Shipping)</label>
785                       <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
786                   </div>
787                   <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
788                       <label class="control-label" for="contact_name">Phone</label>
789                       <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
790                   </div>
791                   <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
792                       <label class="control-label" for="contact_name">Street</label>
793                       <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
794                   </div>
795                   <div class="clearfix"/>
796                   <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
797                       <label class="control-label" for="contact_name">City</label>
798                       <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
799                   </div>
800                   <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
801                       <label class="control-label" for="contact_name">Zip / Postal Code</label>
802                       <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
803                   </div>
804                   <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
805                       <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
806                       <select name="shipping_state_id" class="form-control">
807                           <option value="">State / Province...</option>
808                           <t t-foreach="states or []" t-as="state">
809                               <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
810                           </t>
811                       </select>
812                   </div>
813                   <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
814                       <label class="control-label" for="contact_name">Country</label>
815                       <select name="shipping_country_id" class="form-control">
816                           <option value="">Country...</option>
817                           <t t-foreach="countries or []" t-as="country">
818                               <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
819                           </t>
820                       </select>
821                   </div>
822               </div>
823               <button type="submit" class="btn btn-default btn-primary pull-right mb32">Confirm <span class="fa fa-long-arrow-right"/></button>
824           </div>
825           <div class="col-lg-offset-1 col-lg-3 text-muted">
826               <h3 class="page-header mt16">Your Order <small><a href="/shop/mycart"><span class="fa fa-arrow-right"/> change</a></small></h3>
827               <div class="row">
828                   <div class="col-sm-6 text-right">Subtotal:</div>
829                   <div class="col-sm-6"><span t-esc="website_sale_order.amount_untaxed" t-field-options='{
830                       "widget": "monetary",
831                       "display_currency": "website.pricelist_id.currency_id"
832                   }'/></div>
833                   <div class="col-sm-6 text-right">Taxes:</div>
834                   <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
835                       "widget": "monetary",
836                       "display_currency": "website.pricelist_id.currency_id"
837                   }'/></div>
838                   <div class="col-sm-6 text-right"><h4>Total To Pay:</h4></div>
839                   <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
840                       "widget": "monetary",
841                       "display_currency": "website.pricelist_id.currency_id"
842                   }'/></h4></div>
843               </div>
844           </div>
845       </div>
846       </form>
847     </div>
848     </div>
849   </t>
850 </template>
851
852 <template id="payment">
853   <t t-call="website.layout">
854       <t t-set="head">
855           <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
856           <script type="text/javascript" src="/website_sale/static/src/js/website_sale_payment.js"></script>
857           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
858           <t t-raw="head or ''"/>
859       </t>
860       <t t-set="additional_title">Shop - Select Payment Mode</t>
861       <div id="wrap">
862         <div class="container oe_website_sale">
863
864           <ul class="wizard pull-right">
865               <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
866               <li><a href="/shop/checkout" class="text-success">Shipping &amp; Billing<span class="chevron"></span></a></li>
867               <li class="text-primary">Payment<span class="chevron"></span></li>
868               <li class="text-muted">Confirmation<span class="chevron"></span></li>
869           </ul>
870           <h1 class="mb32">Validate Order</h1>
871           <div class="row">
872           <div class="col-lg-8 col-sm-9 oe_mycart">
873               <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.website_order_line">
874                   <colgroup>
875                       <col width="80"/>
876                       <col/>
877                       <col width="100"/>
878                       <col width="120"/>
879                   </colgroup>
880                   <thead>
881                       <tr>
882                           <th colspan="2">Product</th>
883                           <th>Price</th>
884                           <th>Quantity</th>
885                       </tr>
886                   </thead>
887                   <tbody>
888                       <tr t-foreach="website_sale_order.website_order_line" t-as="line">
889                           <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
890                           <td t-if="line.product_id.product_tmpl_id">
891                               <a t-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }/">
892                                   <span t-field="line.product_id.image_small"
893                                         t-field-options='{"widget": "image", "class": "img-rounded"}'/>
894                               </a>
895                           </td>
896                           <td t-if="line.product_id.product_tmpl_id">
897                              <strong t-field="line.product_id.name"/>
898                           </td>
899                           <td class="text-center">
900                              <span t-field="line.price_unit" t-field-options='{
901                                  "widget": "monetary",
902                                  "display_currency": "website.pricelist_id.currency_id"
903                              }'/>
904                           </td>
905                           <td>
906                              <div t-esc="line.product_uom_qty"/>
907                           </td>
908                       </tr>
909                   </tbody>
910               </table>
911               <t t-call="website_sale.total"/>
912               <div class="clearfix"/>
913               <div class="oe_structure"/>
914             </div>
915             <div class="col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id="right_column">
916                 <h4>Bill To:</h4>
917                 <div t-field="order.partner_invoice_id" t-field-options='{
918                     "widget": "contact",
919                     "fields": ["address", "name", "phone", "email"]
920                     }'/>
921                 <div>
922                   <a href="/shop/checkout"><span class="fa fa-arrow-right"/> Change Address</a>
923                 </div>
924                 <t groups="sale.group_delivery_invoice_address">
925                     <h4 class="mt32">Ship To:</h4>
926                     <t t-if="website_sale_order.partner_shipping_id and website_sale_order.partner_shipping_id.id != website_sale_order.partner_invoice_id.id">
927                       <div t-field="order.partner_shipping_id" t-field-options='{
928                         "widget": "contact",
929                         "fields": ["address", "name", "phone"]
930                         }'/>
931                     </t>
932                     <address t-if="website_sale_order.partner_shipping_id.id == website_sale_order.partner_invoice_id.id">Ship to the same address</address>
933                     <div class="mb32">
934                       <a href="/shop/checkout"><span class="fa fa-arrow-right"/> Change Address</a>
935                     </div>
936                 </t>
937             </div>
938           </div>
939
940           <div class="js_payment mb64" t-if="acquirers" id="payment_method">
941               <div class="col-lg-5 col-sm-6">
942                   <h4>Payment Method:</h4>
943                   <t t-foreach="acquirers or []" t-as="acquirer">
944                       <label t-if="acquirer.button" class="oe_sale_acquirer_logo" style="display: block;">
945                           <input t-att-value="acquirer.id" type="radio" name="acquirer" t-att-checked="acquirers[0] == acquirer"/>
946                           <img class="media-object" style="width: 60px; display: inline-block;"
947                               t-att-title="acquirer.name"
948                               t-att-src="'/payment_acquirer_%s/static/src/img/%s_icon.png' % (acquirer.name, acquirer.name)"/>
949                       </label>
950                   </t>
951               </div>
952               <div class="col-lg-3 col-sm-3">
953                   <t t-foreach="acquirers or []" t-as="acquirer">
954                       <div t-att-data-id="acquirer.id" t-raw="acquirer.button" class="oe_sale_acquirer_button hidden pull-right"/>
955                   </t>
956               </div>
957           </div>
958
959         </div>
960         <div class="oe_structure"/>
961       </div>
962
963   </t>
964 </template>
965
966 <template id="confirmation">
967   <t t-call="website.layout">
968       <t t-set="head">
969           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
970           <script type="text/javascript" src="/website_sale/static/src/js/website_sale_validate.js"></script>
971           <t t-raw="head or ''"/>
972       </t>
973       <t t-set="additional_title">Shop - Confirmed</t>
974       <div id="wrap">
975         <div class="container oe_website_sale">
976
977           <ul class="wizard pull-right">
978               <li class="text-muted">Review Order<span class="chevron"></span></li>
979               <li class="text-muted">Shipping &amp; Billing<span class="chevron"></span></li>
980               <li class="text-muted">Payment<span class="chevron"></span></li>
981               <li class="text-primary">Confirmation<span class="chevron"></span></li>
982           </ul>
983           <h1 class="mb32">Order Confirmed</h1>
984           <div class="row">
985               <div class="col-md-8 oe_mycart">
986                   <h2>Thank you for your order.</h2>
987                   <div class="oe_website_sale_tx_status" t-att-data-order-id="order.id">
988                   </div>
989                   <div class="clearfix"/>
990                   <div class="oe_structure"/>
991               </div>
992               <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
993                 <h4>Bill To:</h4>
994                 <div t-field="order.partner_invoice_id" t-field-options='{
995                     "widget": "contact",
996                     "fields": ["address", "name", "phone", "email"]
997                     }'/>
998                 <t groups="sale.group_delivery_invoice_address">
999                     <h4 class="mt32">Ship To:</h4>
1000                     <t t-if="order.partner_shipping_id and order.partner_shipping_id.id != order.partner_invoice_id.id">
1001                       <div t-field="order.partner_shipping_id" t-field-options='{
1002                         "widget": "contact",
1003                         "fields": ["address", "name", "phone"]
1004                         }'/>
1005                     </t>
1006                     <address t-if="order.partner_shipping_id.id == order.partner_invoice_id.id">Ship to the same address</address>
1007                 </t>
1008               </div>
1009           </div>
1010
1011         </div>
1012         <div class="oe_structure"/>
1013       </div>
1014
1015   </t>
1016 </template>
1017
1018 <!-- Page Shop my cart and payment total -->
1019
1020 <template id="total">
1021     <table class='pull-right mb16' id="mycart_total" t-if="website_sale_order">
1022         <colgroup>
1023             <col width="100"/>
1024             <col width="120"/>
1025         </colgroup>
1026         <thead>
1027             <tr style="border-top: 1px solid #000" id="order_total">
1028                 <th><h3>Total:</h3></th>
1029                 <th class="text-right">
1030                   <h3><span t-field="website_sale_order.amount_total" t-field-options='{
1031                       "widget": "monetary",
1032                       "display_currency": "website.pricelist_id.currency_id"
1033                     }'/></h3>
1034                 </th>
1035             </tr>
1036             <tr class="text-muted" id="order_total_taxes">
1037                 <td><abbr title="Taxes may be updated after providing shipping address">Taxes:</abbr></td>
1038                 <td class="text-right">
1039                     <span t-field="website_sale_order.amount_tax" t-field-options='{
1040                         "widget": "monetary",
1041                         "display_currency": "website.pricelist_id.currency_id"
1042                     }'/>
1043                 </td>
1044             </tr>
1045         </thead>
1046     </table>
1047 </template>
1048
1049 </data>
1050 </openerp>