diff --git a/addons/product/models/product_pricelist.py b/addons/product/models/product_pricelist.py index a8093611c29..dd023de06ce 100644 --- a/addons/product/models/product_pricelist.py +++ b/addons/product/models/product_pricelist.py @@ -316,10 +316,10 @@ class Pricelist(models.Model): return res[partner_id].id def _get_partner_pricelist_multi_search_domain_hook(self): - return [] + return [('active', '=', True)] def _get_partner_pricelist_multi_filter_hook(self): - return self + return self.filtered('active') def _get_partner_pricelist_multi(self, partner_ids, company_id=None): """ Retrieve the applicable pricelist for given partners in a given company.