[FIX] website: crappy layout when use click on edit in the shop. Microforma error...
authorChristophe Matthieu <chm@openerp.com>
Tue, 11 Feb 2014 13:56:10 +0000 (14:56 +0100)
committerChristophe Matthieu <chm@openerp.com>
Tue, 11 Feb 2014 13:56:10 +0000 (14:56 +0100)
bzr revid: chm@openerp.com-20140211135610-0xhf2yiuwfc8k0ss

addons/website_event_sale/views/website_event_sale.xml
addons/website_sale/views/website_sale.xml

index 2cdfa73..98f5055 100644 (file)
@@ -51,8 +51,8 @@
                                    "widget": "monetary",
                                    "display_currency": "website.pricelist_id.currency_id"
                               }'/>
-                              <meta itemprop="price" t-att-content="ticket.price"/>
-                              <meta itemprop="priceCurrency" t-att-content="website.pricelist_id.currency_id.name"/>
+                              <span itemprop="price" style="display:none;" t-esc="ticket.price"/>
+                              <span itemprop="priceCurrency" style="display:none;" t-esc="website.pricelist_id.currency_id.name"/>
                             </t>
                             <t t-if="not ticket.price and not editable">
                                 <span>Free</span>
index c84a64f..9918568 100644 (file)
@@ -81,8 +81,8 @@
                    "display_currency": "website.pricelist_id.currency_id"
                }'>
               </span>
-              <meta itemprop="price" t-att-content="product.product_variant_ids[0].price"/>
-              <meta itemprop="priceCurrency" t-att-content="website.pricelist_id.currency_id.name"/>
+              <span itemprop="price" style="display:none;" t-esc="product.product_variant_ids[0].price"/>
+              <span itemprop="priceCurrency" style="display:none;" t-esc="website.pricelist_id.currency_id.name"/>
           </b>
       </div>
   </section>
                 <span itemprop="image" t-field="product.image" t-field-options='{"widget": "image", "class": "product_detail_img"}'/>
             </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
                 <h1 itemprop="name" t-field="product.name">Product Name</h1>
-                <meta itemprop="url" t-attf-content="/shop/product/{{ slug(product) }}"/>
+                <span itemprop="url" style="display:none;" t-esc="'/shop/product/%s' % slug(product)"/>
                 <form action="/shop/add_cart/" class="js_add_cart_json" method="POST">
                     <input type="hidden" t-if="len(product.product_variant_ids) == 1" name="product_id" t-att-value="product.product_variant_ids[0].id"/>
                     <t t-if="len(product.product_variant_ids) &gt; 1">
                                  "widget": "monetary",
                                  "display_currency": "website.pricelist_id.currency_id"
                              }'/>
-                            <meta itemprop="price" t-att-content="product.product_variant_ids[0].price"/>
-                            <meta itemprop="priceCurrency" t-att-content="website.pricelist_id.currency_id.name"/>
+                            <span itemprop="price" style="display:none;" t-esc="product.product_variant_ids[0].price"/>
+                            <span itemprop="priceCurrency" style="display:none;" t-esc="website.pricelist_id.currency_id.name"/>
                         </h4>
                     </div>
                     <button class="btn btn-primary btn-lg mt8">Add to Cart</button>