~credativ/openobject-addons/addons-extra-syrup

« back to all changes in this revision

Viewing changes to training/wizard/create_session.py

  • Committer: Albert Cervera i Areny
  • Date: 2011-06-14 09:51:35 UTC
  • mfrom: (5345.1.165 openobject-addons)
  • Revision ID: albert@nan-tic.com-20110614095135-1x3p6tmil5lxkl9b
Merge and add nan_remove_default_filters

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        offer = proxy.browse(cr, uid, context['active_id'], context=context)
57
57
        for form in self.read(cr, uid, ids, [], context=context):
58
58
            if not offer.can_be_planned:
59
 
                raise wizard.except_wizard(_('Warning'),
60
 
                                           _("You can not create a session with a non-validated offer"))
61
 
 
 
59
                raise osv.except_osv(_('Warning'), _("You can not create a session with a non-validated offer") )
62
60
 
63
61
            proxy = pool.get('training.session')
64
62
            session_id = proxy.create(cr, uid,