[BUG] put default maximum registration to 1000 else it was 0 and it raised and error

bzr revid: mva@openerp.com-20120207112614-2adyy8u937rnlfev
This commit is contained in:
MVA 2012-02-07 12:26:14 +01:00
parent 5c07b95388
commit db98d53e69
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ class event_event(osv.osv):
'state': 'draft',
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'event.event', context=c),
'user_id': lambda obj, cr, uid, context: uid,
'register_max': 1000,
}
def _check_closing_date(self, cr, uid, ids, context=None):