1
# -*- encoding: utf-8 -*-
5
def _event_tasks(self, cr, uid, data, context):
7
cr.execute('''SELECT project_id FROM event_event WHERE id = %d '''% (event_id, ))
10
raise wizard.except_wizard('Error !', 'No project defined for this event.\nYou can create one with the retro-planning button !')
12
'domain': [('project_id', '=', res[0])],
15
'view_mode': 'tree,form,calendar',
16
'res_model': 'project.task',
18
'type': 'ir.actions.act_window'
22
class wizard_event_tasks(wizard.interface):
28
'action': _event_tasks,
33
wizard_event_tasks("wizard_event_tasks")
35
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: