diff --git a/stock_ownership_availability_rules/model/quant.py b/stock_ownership_availability_rules/model/quant.py index 9de2f232e2d3..e6c869f89f59 100644 --- a/stock_ownership_availability_rules/model/quant.py +++ b/stock_ownership_availability_rules/model/quant.py @@ -33,11 +33,13 @@ def create(self, vals): @api.model def quants_get_prefered_domain(self, location, product, qty, domain=None, - prefered_domain_list=[], + prefered_domain_list=None, restrict_lot_id=False, restrict_partner_id=False): if domain is None: domain = [] + if prefered_domain_list is None: + prefered_domain_list = [] my_partner = location.company_id.partner_id if restrict_partner_id == my_partner.id or not restrict_partner_id: