~vauxoo/addons-vauxoo/trunk-upforward70-2-dev-moylop260

« back to all changes in this revision

Viewing changes to openacademy/wizard/create_attendee_wizard.py

  • Committer: nhomar at vauxoo
  • Date: 2011-09-26 03:06:41 UTC
  • Revision ID: nhomar@vauxoo.com-20110926030641-mci41za6a1w0g14p
[FIX] SOme useless code

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        'wiz_id':fields.many2one('openacademy.create.attendee.wizard',),
39
39
    }
40
40
    _defaults = {
41
 
        'name': lambda *a: "La chingada",
 
41
        'name': lambda *a: "",
42
42
    }
43
43
attendee_memory()
44
44
 
50
50
        }
51
51
        
52
52
    def _get_active_session(self, cr, uid, context=None):
53
 
        print context
54
53
        if not context:
55
54
            return False
56
55
        else:
67
66
        else:
68
67
            session_ids=[wizard.session_id.id]
69
68
        attendee_pool = self.pool.get('openacademy.attendee')
70
 
        print _('Hello we are in the wizard %(id)s and %(partner)s') % {'id':wizard.id,'partner':wizard.attendee_ids}
71
69
        for session_id in session_ids:
72
70
            for attendee in wizard.attendee_ids:
73
71
                attendee_pool.create(cr,uid,{'partner_id':attendee.partner_id.id,
74
72
                'session_id':session_id} )
75
 
        return {
76
 
            'name': 'wired_action',
77
 
            'view_type': 'form',
78
 
            'view_mode': 'tree,form',
79
 
            'res_model': 'openacademy.session',
80
 
            'view_id': False,
81
 
            'type': 'ir.actions.act_window'}
 
73
        return {}
82
74
 
83
75
create_attendee_wizard()