diff --git a/addons/event/event.py b/addons/event/event.py index 375415d799e..e83f56cb5bb 100644 --- a/addons/event/event.py +++ b/addons/event/event.py @@ -201,18 +201,17 @@ class event_event(osv.osv): (_check_closing_date, 'Error ! Closing Date cannot be set before Beginning Date.', ['date_end']), ] - def onchange_evnet_type(self, cr, uid, ids, type_event, context=None): + def onchange_event_type(self, cr, uid, ids, type_event, context=None): if type_event: type_info = self.pool.get('event.type').browse(cr,uid,type_event,context) dic ={ - 'reply_to':type_info.default_reply_to, - 'email_registration_id':type_info.default_email_registration.id, - 'email_confirmation_id':type_info.default_email_event.id, - 'register_min':type_info.default_registration_min, - 'register_max':type_info.default_registration_max, + 'reply_to': type_info.default_reply_to, + 'email_registration_id': type_info.default_email_registration.id, + 'email_confirmation_id': type_info.default_email_event.id, + 'register_min': type_info.default_registration_min, + 'register_max': type_info.default_registration_max, } - res = {'value':dic} - return res + return {'value': dic} event_event() class event_registration(osv.osv): diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml index 748619dde31..9e1ee422265 100644 --- a/addons/event/event_view.xml +++ b/addons/event/event_view.xml @@ -55,7 +55,7 @@ - + @@ -345,7 +345,7 @@ calendar - +