From be6b038fb7babf7be922969504a21d3759d08086 Mon Sep 17 00:00:00 2001 From: openerp-sle Date: Wed, 29 Jan 2014 16:08:38 +0100 Subject: [PATCH] [FIX] website_customer: removed redundant template 'customer_contact', fixed the country-filtering and avoid showing 'false' when partner has not website_short_description bzr revid: openerp-sle@openerp-sle.home-20140129150838-pj9hmexxl3sk89tp --- addons/website_customer/controllers/main.py | 2 +- .../views/website_customer.xml | 32 +------------------ 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/addons/website_customer/controllers/main.py b/addons/website_customer/controllers/main.py index e7e53378c51..9918b7336bd 100644 --- a/addons/website_customer/controllers/main.py +++ b/addons/website_customer/controllers/main.py @@ -33,7 +33,7 @@ class WebsiteCustomer(http.Controller): ('name', 'ilike', "%%%s%%" % post.get("search")), ('website_description', 'ilike', "%%%s%%" % post.get("search")) ] - country_id = None + if country_id: domain += [('country_id', '=', country_id)] diff --git a/addons/website_customer/views/website_customer.xml b/addons/website_customer/views/website_customer.xml index def29a71d03..64eeb3220a4 100644 --- a/addons/website_customer/views/website_customer.xml +++ b/addons/website_customer/views/website_customer.xml @@ -48,7 +48,7 @@

-
+
@@ -117,36 +117,6 @@ - -