'date_start': fields.date('Date Start',required=True),
'date_end': fields.date('Date End',required=True)
}
-
+ _defaults = {
+ 'date_start': lambda *a: time.strftime('%Y-%m-%d'),
+ 'date_end': lambda *a: time.strftime('%Y-%m-%d'),
+ }
def print_report(self, cr, uid, ids, context={}):
"""
To get the date and print the report