From 945a1d16d8c0bff6689c18f0b4544bdbd6bf0269 Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Thu, 4 Nov 2010 13:08:52 +0100 Subject: [PATCH] [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 --- addons/account/installer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index 83ddff6065d..a9c459cec86 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -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: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: