6
dates_form = '''<?xml version="1.0"?>
7
<form string="Select period">
14
'sdate': {'string':'Start Date', 'type':'date', 'required':True, 'default': lambda *a: time.strftime('%Y-01-01')},
15
'edate': {'string':'End Date', 'type':'date', 'required':True, 'default': lambda *a: time.strftime('%Y-%m-%d')},
19
class datewisecheck(wizard.interface):
24
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel'),('report','Print')]}
28
'result': {'type':'print', 'report':'datereport.print', 'state':'end'}
31
datewisecheck('employee.date.check')