diff --git a/addons/membership/membership_view.xml b/addons/membership/membership_view.xml index 24693845e1c..c70c8cd6cc0 100644 --- a/addons/membership/membership_view.xml +++ b/addons/membership/membership_view.xml @@ -9,9 +9,10 @@ membership.product.search.form product.template + 50 - + diff --git a/addons/product/product.py b/addons/product/product.py index 6fa0627db2c..d90165ae022 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -816,10 +816,8 @@ class product_product(osv.osv): uom.id, product.list_price, context['uom']) else: res[product.id] = product.list_price - price_extra = 0.0 - for variant_id in product.attribute_value_ids: - price_extra += variant_id.price_extra - res[product.id] = (res[product.id] or 0.0) + price_extra + res[product.id] = res[product.id] + product.price_extra + return res def _get_partner_code_name(self, cr, uid, ids, product, partner_id, context=None): diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index 6f29d3a188d..963bdd0eea0 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -283,15 +283,30 @@ Product Kanban product.product - primary - - - - - - - + + + + + +
+ +
+

+ + + + +

+
+
    +
  • Price:
  • +
+
+
+ + + @@ -343,7 +358,7 @@
@@ -361,7 +376,7 @@

- + Variants

diff --git a/addons/report_intrastat/report_intrastat_view.xml b/addons/report_intrastat/report_intrastat_view.xml index 574234b1eac..f1147d7f28c 100644 --- a/addons/report_intrastat/report_intrastat_view.xml +++ b/addons/report_intrastat/report_intrastat_view.xml @@ -25,14 +25,13 @@ - - product.normal.form - product.product - + + product.template.form + product.template + - + diff --git a/addons/website/models/ir_http.py b/addons/website/models/ir_http.py index 7c7ad354cdc..4d42c9d0643 100644 --- a/addons/website/models/ir_http.py +++ b/addons/website/models/ir_http.py @@ -62,7 +62,7 @@ class ir_http(orm.AbstractModel): self.geo_ip_resolver = GeoIP.open('/usr/share/GeoIP/GeoIP.dat', GeoIP.GEOIP_STANDARD) except ImportError: self.geo_ip_resolver = False - if self.geo_ip_resolver: + if self.geo_ip_resolver and request.httprequest.remote_addr: record = self.geo_ip_resolver.record_by_addr(request.httprequest.remote_addr) or {} request.session['geoip'] = record diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 8cd78377a90..b99d399a7a6 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -452,7 +452,6 @@ openerp.jsonRpc('/website/customize_template_get', 'call', { 'xml_id': view_name }).then( function(result) { _.each(result, function (item) { - if (item.xml_id === "website.debugger" && !window.location.search.match(/[&?]debug(&|$)/)) return; if (item.header) { menu.append(''); } else { diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 92483061e10..97edc1713df 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -251,12 +251,6 @@ - - -