[REF] Review the merge of Jignesh Rathod
bzr revid: stw@openerp.com-20120904145600-7l30odznr1odhvq7
This commit is contained in:
commit
57c22b7e02
|
@ -39,8 +39,8 @@ class event_type(osv.osv):
|
|||
}
|
||||
_defaults = {
|
||||
'default_registration_min': 0,
|
||||
'default_registration_max':0,
|
||||
}
|
||||
'default_registration_max': 0,
|
||||
}
|
||||
|
||||
event_type()
|
||||
|
||||
|
@ -54,8 +54,12 @@ class event_event(osv.osv):
|
|||
def name_get(self, cr, uid, ids, context=None):
|
||||
if not ids:
|
||||
return []
|
||||
|
||||
if isinstance(ids, (long, int)):
|
||||
ids = [ids]
|
||||
|
||||
res = []
|
||||
for record in self.browse(cr, uid, ids, context=context):
|
||||
for record in self.browse(cr, uid, ids, context=context)
|
||||
date = record.date_begin.split(" ")[0]
|
||||
date_end = record.date_end.split(" ")[0]
|
||||
if date != date_end:
|
||||
|
|
Loading…
Reference in New Issue