[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
This commit is contained in:
Goffin Simon
2016-11-30 16:19:56 +01:00
parent c965e64e52
commit 60300fc287
+2
View File
@@ -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