]
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 ={
'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 = {}