[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user