[FIX] website_sale: test did not load js properly and failed
authorRichard Mathot <rim@openerp.com>
Mon, 26 May 2014 14:55:12 +0000 (16:55 +0200)
committerRichard Mathot <rim@openerp.com>
Mon, 26 May 2014 14:58:14 +0000 (16:58 +0200)
addons/website/views/website_templates.xml
addons/website_sale/views/website_sale.xml

index f26d9ba..f505102 100644 (file)
 
 <template id="debugger" inherit_option_id="website.layout" name="Debugger &amp; Tests">
     <xpath expr='//t[@name="layout_head"]' position="after">
-        <script type="text/javascript" src="/website/static/src/js/website.tour.js"></script>
+        <t t-set="debugger_hook" t-value="1" />
     </xpath>
 </template>
 
index 542147a..027ee6b 100644 (file)
@@ -5,7 +5,7 @@
 <!-- Layout add nav and footer -->
 
 <template id="debugger" inherit_id="website.debugger" name="Event Debugger">
-    <xpath expr="//script[last()]" position="after">
+    <xpath expr='//t[@t-set="debugger_hook"]' position="after">
         <script type="text/javascript" src="/website_sale/static/src/js/website.tour.sale.js"></script>
     </xpath>
 </template>
                               method="POST">
                           <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;"/>
                           <div class="pull-left mb32" style="width: 75%%">
-                            
+
                               <textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
                               <a class="btn btn-primary mt8 a-submit">Post</a>
                           </div>