From 816be76ee6e84cf5426245535bda59e1f70626ec Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 22 Jun 2015 14:31:33 +0200 Subject: [PATCH] [FIX] consider user's timezone in default date proposal Fixes #6316 --- addons/account_voucher/account_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index cc3bf481b40..be279aa6fe5 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -427,7 +427,7 @@ class account_voucher(osv.osv): 'state': 'draft', 'pay_now': 'pay_now', 'name': '', - 'date': lambda *a: time.strftime('%Y-%m-%d'), + 'date': fields.date.context_today, 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.voucher',context=c), 'tax_id': _get_tax, 'payment_option': 'without_writeoff',