[FIX] Back to old formatting, before revno 6565
authorThibault Delavallée <tde@openerp.com>
Wed, 15 Feb 2012 09:38:17 +0000 (10:38 +0100)
committerThibault Delavallée <tde@openerp.com>
Wed, 15 Feb 2012 09:38:17 +0000 (10:38 +0100)
bzr revid: tde@openerp.com-20120215093817-v6shtzwmc24ewbgc

addons/account/account.py

index 28450e1..c1a3096 100644 (file)
@@ -936,8 +936,8 @@ class account_fiscalyear(osv.osv):
                 period_obj.create(cr, uid, {
                     'name': ds.strftime('%m/%Y'),
                     'code': ds.strftime('%m/%Y'),
-                    'date_start': fields.date.context_today(self, cr, uid, timestamp=ds, context=context),
-                    'date_stop': fields.date.context_today(self, cr, uid timestamp=de, context=context),
+                    'date_start': ds.strftime('%Y-%m-%d'),
+                    'date_stop': de.strftime('%Y-%m-%d'),
                     'fiscalyear_id': fy.id,
                 })
                 ds = ds + relativedelta(months=interval)