Skip to content

Commit

Permalink
remove mutable default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lepistone committed Jan 5, 2015
1 parent 7197abf commit 71ef53f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stock_ownership_availability_rules/model/quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 71ef53f

Please sign in to comment.