[FIX] consider user's timezone in default date proposal

Fixes #6316
This commit is contained in:
Nicolas Martinelli 2015-06-22 14:31:33 +02:00
parent 8f86a40562
commit 816be76ee6
1 changed files with 1 additions and 1 deletions

View File

@ -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',