~openerp-commiter/openobject-addons/trunk-extra-addons

« back to all changes in this revision

Viewing changes to hr_skill/wizard/skill.py

merging new development from indian accounting

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- encoding: utf-8 -*-
 
2
import wizard
 
3
import pooler
 
4
import time
 
5
 
 
6
emp_form = '''<?xml version="1.0"?>
 
7
<form string="Select period">
 
8
        <field name="s_ids"/>
 
9
</form>'''
 
10
 
 
11
emp_field ={
 
12
    's_ids': {'name' : 'skill', 'relation':'hr_skill.skill', 'string':'Skill', 'required':'True', 'type':'many2one','domain':"[('view','=','skill')]"},
 
13
   }
 
14
 
 
15
class skillemployee(wizard.interface):
 
16
    states = {
 
17
       'init': {
 
18
                    'actions': [],
 
19
                    'result': {'type':'form', 'arch':emp_form, 'fields':emp_field, 'state':[('end','Cancel'),('report','Print')]}
 
20
        },
 
21
 
 
22
       'report': {
 
23
                    'actions': [],
 
24
                    'result': {'type':'print', 'report':'skillreport', 'state':'end'}
 
25
        }
 
26
    }
 
27
 
 
28
skillemployee('empskill')
 
29
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
30