From 60300fc287928358d31ae5faff1b7f9953c57d18 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 30 Nov 2016 14:46:31 +0100 Subject: [PATCH] [FIX] website_sale: _get_pl_partner_order The function _get_pl_partner_order must also return the available pricelists on the website with promo code. In this way, the user can use promo code on the website. opw:694556 --- addons/website_sale/models/sale_order.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/website_sale/models/sale_order.py b/addons/website_sale/models/sale_order.py index a8a25ee3bdb..ed65a8380e7 100644 --- a/addons/website_sale/models/sale_order.py +++ b/addons/website_sale/models/sale_order.py @@ -211,6 +211,8 @@ class Website(models.Model): if not pricelists: # no pricelist for this country, or no GeoIP pricelists |= all_pl.filtered(lambda pl: not show_visible or pl.selectable or pl.id in (current_pl, order_pl)) + else: + pricelists |= all_pl.filtered(lambda pl: not show_visible and pl.code) # This method is cached, must not return records! See also #8795 return pricelists.ids