diff --git a/vouchers_pos/data/product_data.xml b/vouchers_pos/data/product_data.xml
index 0431a5e1d..660a0685c 100644
--- a/vouchers_pos/data/product_data.xml
+++ b/vouchers_pos/data/product_data.xml
@@ -3,9 +3,9 @@
Gift-Coupon
Gift-Coupon
- True
+ True
service
-
\ No newline at end of file
+
diff --git a/website_coupon/i18n/fr.po b/website_coupon/i18n/fr.po
index e689e4a20..9bd169060 100644
--- a/website_coupon/i18n/fr.po
+++ b/website_coupon/i18n/fr.po
@@ -2,13 +2,13 @@
# This file contains the translation of the following modules:
# * website_coupon
#
-# Xavier Brochard , 2017.
+# Xavier Brochard , 2017, 2018.
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0-20171109\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-17 11:24+0000\n"
-"PO-Revision-Date: 2017-11-17 15:04+0100\n"
+"PO-Revision-Date: 2018-09-26 19:37+0100\n"
"Last-Translator: Xavier Brochard \n"
"Language-Team: French <>\n"
"MIME-Version: 1.0\n"
@@ -21,7 +21,7 @@ msgstr ""
#. module: website_coupon
#: model:ir.ui.view,arch_db:website_coupon.cart_lines_extended
msgid " Remove"
-msgstr " Enlever"
+msgstr " Supprimer"
#. module: website_coupon
#: selection:gift.voucher,voucher_type:0
@@ -36,7 +36,7 @@ msgstr "Valable sur"
#. module: website_coupon
#: model:ir.ui.view,arch_db:website_coupon.applied_coupons_view
msgid "Applied Coupons"
-msgstr ""
+msgstr "Codes promo utilisés"
#. module: website_coupon
#: model:ir.ui.view,arch_db:website_coupon.voucher_code
@@ -61,7 +61,7 @@ msgstr "Restrictions obligatoires"
#. module: website_coupon
#: model:ir.model.fields,field_description:website_coupon.field_partner_coupon_coupon
msgid "Coupon Applied"
-msgstr "Code utilisé"
+msgstr "Code promo utilisé"
#. module: website_coupon
#: model:ir.ui.menu,name:website_coupon.gift_coupon_history
@@ -72,7 +72,7 @@ msgstr "Utilisation"
#: model:ir.model.fields,field_description:website_coupon.field_res_partner_applied_coupon
#: model:ir.model.fields,field_description:website_coupon.field_res_users_applied_coupon
msgid "Coupons Applied"
-msgstr ""
+msgstr "Codes promo utilisés"
#. module: website_coupon
#: model:ir.model.fields,field_description:website_coupon.field_gift_coupon_create_uid
@@ -125,7 +125,7 @@ msgstr "Code promotionel"
#. module: website_coupon
#: model:ir.ui.menu,name:website_coupon.gift_coupon_main
msgid "Gift Coupons"
-msgstr "Codes promo"
+msgstr "Promotions"
#. module: website_coupon
#: model:ir.actions.act_window,name:website_coupon.action_gift_coupon_history
@@ -135,7 +135,7 @@ msgstr "Promotions utilisées"
#. module: website_coupon
#: model:ir.ui.menu,name:website_coupon.gift_voucher
msgid "Gift Voucher"
-msgstr "Promotions autorisées"
+msgstr "Promotion autorisée"
#. module: website_coupon
#: model:ir.actions.act_window,name:website_coupon.action_gift_voucher
@@ -178,7 +178,7 @@ msgstr ""
#. module: website_coupon
#: model:ir.model.fields,field_description:website_coupon.field_gift_coupon_partner_id
msgid "Limit to a Single Partner"
-msgstr "Limiter au contact"
+msgstr "Limité au contact"
#. module: website_coupon
#: model:ir.model.fields,field_description:website_coupon.field_gift_voucher_max_value
@@ -217,7 +217,7 @@ msgstr "Pourcentage"
#: code:addons/website_coupon/models/gift_voucher.py:77
#, python-format
msgid "Please check the voucher value"
-msgstr ""
+msgstr "Vérifiez la valeur de calcul autorisée"
#. module: website_coupon
#: model:ir.ui.view,arch_db:website_coupon.cart_lines_extended
@@ -255,7 +255,7 @@ msgstr "Débute le"
#. module: website_coupon
#: model:ir.ui.view,arch_db:website_coupon.voucher_code
msgid "The discount amount is too large"
-msgstr ""
+msgstr "La réduction est trop grande"
#. module: website_coupon
#: model:ir.ui.view,arch_db:website_coupon.voucher_code
@@ -265,12 +265,12 @@ msgstr "Ce code n'est pas valable"
#. module: website_coupon
#: model:ir.model.fields,field_description:website_coupon.field_gift_coupon_total_avail
msgid "Total Available"
-msgstr "Quantité totale disponible"
+msgstr "Quantité disponible"
#. module: website_coupon
#: model:ir.model.fields,field_description:website_coupon.field_gift_coupon_limit
msgid "Total Available For Each User"
-msgstr "Quantité maxi par personne"
+msgstr "Quantité max par personne"
#. module: website_coupon
#: model:ir.model.fields,field_description:website_coupon.field_gift_coupon_type
diff --git a/website_sale_advanced_search/controllers/main.py b/website_sale_advanced_search/controllers/main.py
index 68c358277..28378489d 100644
--- a/website_sale_advanced_search/controllers/main.py
+++ b/website_sale_advanced_search/controllers/main.py
@@ -18,6 +18,7 @@ class WebsiteSearch(http.Controller):
category = int(kw.get('category')) if not kw.get('category') == 'all' else ''
try:
domain = [('public_categ_ids', 'child_of', [category])] if category else []
+ domain.append(('website_published','=', True))
product_as_category = request.env['product.template'].search(domain)
sql = """select id as res_id, name as name, name as value from product_template where name ILIKE %s"""
extra_query = ''