From 23c238e7a43fc66cf00f62fc18a17c82bf33359c Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 2 Jul 2013 22:48:49 +0200 Subject: [PATCH] [FIX] website_sale: make views editables bzr revid: chs@openerp.com-20130702204849-haixhwag18xjyr3r --- addons/website_sale/controllers/main.py | 2 +- .../website_sale/static/src/css/ecommerce.css | 25 ++------- .../static/src/css/ecommerce.sass | 4 -- addons/website_sale/views/ecommerce.xml | 52 ++++++++++--------- 4 files changed, 34 insertions(+), 49 deletions(-) diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py index 6f43908dd1c..728a13945d6 100644 --- a/addons/website_sale/controllers/main.py +++ b/addons/website_sale/controllers/main.py @@ -69,7 +69,7 @@ class Ecommerce(http.Controller): 'categories': category_obj.browse(cr, uid, category_ids), 'products': product_obj.browse(cr, uid, product_ids), }) - html = request.registry.get("ir.ui.view").render(cr, uid, "website_sale.page", values) + html = request.registry.get("ir.ui.view").render(cr, uid, "website_sale.products", values) return html @http.route(['/shop/product/'], type='http', auth="db") diff --git a/addons/website_sale/static/src/css/ecommerce.css b/addons/website_sale/static/src/css/ecommerce.css index 77bee531fe5..048a48b8841 100644 --- a/addons/website_sale/static/src/css/ecommerce.css +++ b/addons/website_sale/static/src/css/ecommerce.css @@ -5,11 +5,10 @@ .oe_ecommerce input { border: 1px solid #dddddd; font-size: 13px; - -moz-border-radius: 3px; -webkit-border-radius: 3px; - -o-border-radius: 3px; + -moz-border-radius: 3px; -ms-border-radius: 3px; - -khtml-border-radius: 3px; + -o-border-radius: 3px; border-radius: 3px; padding: 5px; padding-left: 7px; @@ -22,9 +21,8 @@ padding: 10px; } .oe_ecommerce .oe_product { - -moz-box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.1); - -o-box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.1); + -moz-box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.1); box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.1); text-align: center; vertical-align: top; @@ -36,11 +34,10 @@ margin-top: 0; margin-bottom: 10px; margin-right: 10px; - -moz-border-radius: 5px; -webkit-border-radius: 5px; - -o-border-radius: 5px; + -moz-border-radius: 5px; -ms-border-radius: 5px; - -khtml-border-radius: 5px; + -o-border-radius: 5px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.1); } @@ -54,17 +51,8 @@ margin: 10px; } .oe_ecommerce .oe_product .oe_ecommerce_price span { - color: #9e9a99; font-weight: bold; - padding: 10px 15px; margin: 5px; - background: rgba(0, 0, 0, 0.2); - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - -o-border-radius: 3px; - -ms-border-radius: 3px; - -khtml-border-radius: 3px; - border-radius: 3px; } .oe_ecommerce .oe_product .oe_ecommerce_description { display: none; @@ -98,7 +86,6 @@ background: -webkit-linear-gradient(#aaaaaa, #999999); background: -moz-linear-gradient(#aaaaaa, #999999); background: -o-linear-gradient(#aaaaaa, #999999); - background: -ms-linear-gradient(#aaaaaa, #999999); background: linear-gradient(#aaaaaa, #999999); } .oe_ecommerce .oe_product .oe_button_cart button:last-child { @@ -106,7 +93,6 @@ background: -webkit-linear-gradient(#0088cc, #0076b1); background: -moz-linear-gradient(#0088cc, #0076b1); background: -o-linear-gradient(#0088cc, #0076b1); - background: -ms-linear-gradient(#0088cc, #0076b1); background: linear-gradient(#0088cc, #0076b1); } .oe_ecommerce .oe_product .oe_button_cart button:last-child.btn-success { @@ -114,6 +100,5 @@ background: -webkit-linear-gradient(#51a351, #418541); background: -moz-linear-gradient(#51a351, #418541); background: -o-linear-gradient(#51a351, #418541); - background: -ms-linear-gradient(#51a351, #418541); background: linear-gradient(#51a351, #418541); } diff --git a/addons/website_sale/static/src/css/ecommerce.sass b/addons/website_sale/static/src/css/ecommerce.sass index 3f5c32a6464..bc715050922 100644 --- a/addons/website_sale/static/src/css/ecommerce.sass +++ b/addons/website_sale/static/src/css/ecommerce.sass @@ -23,12 +23,8 @@ font-size: 25px margin: 10px span - color: #9e9a99 font-weight: bold - padding: 10px 15px margin: 5px - background: rgba(0,0,0,.2) - +border-radius(3px) .oe_ecommerce_description display: none h4 diff --git a/addons/website_sale/views/ecommerce.xml b/addons/website_sale/views/ecommerce.xml index 2b32826aa43..da8588b7998 100644 --- a/addons/website_sale/views/ecommerce.xml +++ b/addons/website_sale/views/ecommerce.xml @@ -38,10 +38,6 @@
- - - -
@@ -57,7 +53,7 @@ qweb
  • - +