[FIX] account, installer: put back the lambda expression in _defaults on date fields in order to have those value depending on current date rather that on the starting date of the server
bzr revid: qdp-launchpad@tinyerp.com-20101104120852-nxt9l88c13i3rf0y
This commit is contained in:
parent
dab7efb977
commit
945a1d16d8
|
@ -86,8 +86,8 @@ class account_installer(osv.osv_memory):
|
|||
return 'configurable'
|
||||
|
||||
_defaults = {
|
||||
'date_start': time.strftime('%Y-01-01'),
|
||||
'date_stop': time.strftime('%Y-12-31'),
|
||||
'date_start': lambda *a: time.strftime('%Y-01-01'),
|
||||
'date_stop': lambda *a: time.strftime('%Y-12-31'),
|
||||
'period': 'month',
|
||||
'sale_tax': 0.0,
|
||||
'purchase_tax': 0.0,
|
||||
|
@ -749,4 +749,4 @@ class account_installer_modules(osv.osv_memory):
|
|||
|
||||
account_installer_modules()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
Loading…
Reference in New Issue