[FIX] event: fixed typo in method name + fixed calendar view of registrations
bzr revid: qdp-launchpad@openerp.com-20120228115803-2zvwpin3r3uo911q
This commit is contained in:
parent
591fe52a37
commit
86a476d466
|
@ -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):
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
<field name="name"/>
|
||||
<field name="date_begin"/>
|
||||
<field name="date_end"/>
|
||||
<field name="type" on_change="onchange_evnet_type(type,context)"/>
|
||||
<field name="type" on_change="onchange_event_type(type,context)"/>
|
||||
<field name="user_id"/>
|
||||
<field name="address_id" />
|
||||
</group>
|
||||
|
@ -345,7 +345,7 @@
|
|||
<field name="type">calendar</field>
|
||||
<field eval="2" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<calendar color="event_id" date_start="date" date_stop="date_closed" string="Event Registration">
|
||||
<calendar color="event_id" date_start="event_begin_date" date_stop="event_end_date" string="Event Registration">
|
||||
<field name="event_id"/>
|
||||
<field name="name"/>
|
||||
</calendar>
|
||||
|
|
Loading…
Reference in New Issue