Browse Source

[FIX] mutable default in function signature

pull/2/head
unknown 11 years ago
parent
commit
0a5874679e
  1. 2
      base_location/better_zip.py

2
base_location/better_zip.py

@ -51,7 +51,7 @@ class BetterZip(orm.Model):
res.append((bzip.id, ", ".join(name))) res.append((bzip.id, ", ".join(name)))
return res return res
def onchange_state_id(self, cr, uid, ids, state_id=False, context={}):
def onchange_state_id(self, cr, uid, ids, state_id=False, context=None):
result = {} result = {}
if state_id: if state_id:
state = self.pool['res.country.state'].browse(cr, uid, state_id, context=context) state = self.pool['res.country.state'].browse(cr, uid, state_id, context=context)

Loading…
Cancel
Save