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

« back to all changes in this revision

Viewing changes to hr_skill/wizard/lang_wiz.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 time
 
4
import pooler
 
5
import netsvc
 
6
from tools.misc import UpdateableStr,UpdateableDict
 
7
 
 
8
info = '''<?xml version="1.0"?>
 
9
<form string="Select period">
 
10
    <label string="Select Language !"/>
 
11
</form>'''
 
12
 
 
13
form1 = '''<?xml version="1.0"?>
 
14
<form string="Select period">
 
15
 
 
16
    <field name="lang"/>
 
17
 
 
18
 </form>'''
 
19
 
 
20
field1 = {
 
21
    'lang': {'string':'Language', 'type':'one2many', 'relation':'emp.lang'},
 
22
 
 
23
        }
 
24
 
 
25
class lang_get(wizard.interface):
 
26
    states = {
 
27
 
 
28
       'init': {
 
29
            'actions': [],
 
30
            'result': {'type':'form','arch':form1, 'fields':field1, 'state':[('end','Cancel'),('rpt','Report')]}
 
31
        },
 
32
 
 
33
        'rpt': {
 
34
            'actions': [],
 
35
            'result': {'type':'print','report':'langreport','state':'end'}
 
36
                },
 
37
 
 
38
             }
 
39
lang_get('langget')
 
40
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
41