[FIX] event: on_change methods must return a dict, always.
bzr revid: dle@openerp.com-20140214114627-yi05u3y45w797fza
This commit is contained in:
parent
115eb2027d
commit
ea007a4810
|
@ -248,6 +248,7 @@ class event_event(osv.osv):
|
|||
]
|
||||
|
||||
def onchange_event_type(self, cr, uid, ids, type_event, context=None):
|
||||
values = {}
|
||||
if type_event:
|
||||
type_info = self.pool.get('event.type').browse(cr,uid,type_event,context)
|
||||
dic ={
|
||||
|
@ -257,7 +258,8 @@ class event_event(osv.osv):
|
|||
'register_min': type_info.default_registration_min,
|
||||
'register_max': type_info.default_registration_max,
|
||||
}
|
||||
return {'value': dic}
|
||||
values.update(dic)
|
||||
return values
|
||||
|
||||
def on_change_address_id(self, cr, uid, ids, address_id, context=None):
|
||||
values = {}
|
||||
|
|
Loading…
Reference in New Issue