[FIX] point_of_sale: sale details, start/end date with user tz

opw-633998
This commit is contained in:
Denis Ledoux 2015-05-04 10:30:12 +02:00
parent c884be3be9
commit 1288536c03
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ class pos_details(osv.osv_memory):
'user_ids': fields.many2many('res.users', 'pos_details_report_user_rel', 'user_id', 'wizard_id', 'Salespeople'),
}
_defaults = {
'date_start': lambda *a: time.strftime('%Y-%m-%d'),
'date_end': lambda *a: time.strftime('%Y-%m-%d'),
'date_start': fields.date.context_today,
'date_end': fields.date.context_today,
}
def print_report(self, cr, uid, ids, context=None):