From e08419164c3e9790f77606021bd1ff7c573792d0 Mon Sep 17 00:00:00 2001 From: "Amit Patel (OpenERP)" Date: Tue, 1 May 2012 18:48:22 +0530 Subject: [PATCH] improve event bzr revid: apa@tinyerp.com-20120501131822-07yqsoq3zbo6t1ap --- addons/event/event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/event/event.py b/addons/event/event.py index 3210692..34131cb 100644 --- a/addons/event/event.py +++ b/addons/event/event.py @@ -185,8 +185,8 @@ class event_event(osv.osv): 'date_end': fields.datetime('End Date', required=True, readonly=True, states={'draft': [('readonly', False)]}), 'state': fields.selection([ ('draft', 'Unconfirmed'), - ('confirm', 'Confirmed'), ('cancel', 'Cancelled'), + ('confirm', 'Confirmed'), ('done', 'Done')], 'State', readonly=True, required=True, help='If event is created, the state is \'Draft\'.If event is confirmed for the particular dates the state is set to \'Confirmed\'. If the event is over, the state is set to \'Done\'.If event is cancelled the state is set to \'Cancelled\'.'), @@ -271,8 +271,8 @@ class event_registration(osv.osv): 'user_id': fields.many2one('res.users', 'Attendee', states={'done': [('readonly', True)]}), 'company_id': fields.related('event_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True, states={'draft':[('readonly',False)]}), 'state': fields.selection([('draft', 'Unconfirmed'), - ('open', 'Confirmed'), ('cancel', 'Cancelled'), + ('open', 'Confirmed'), ('done', 'Attended')], 'State', size=16, readonly=True), } -- 1.7.10.4