From 69c98d65ea84c4c9c0772b177f228c498f83256b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 8 Oct 2008 12:18:36 +0200 Subject: [PATCH] Use ir.date --- line.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/line.py b/line.py index 0f3c2280b1..cfd9251ce4 100644 --- a/line.py +++ b/line.py @@ -1,9 +1,9 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. +#This file is part of Tryton. The COPYRIGHT file at the top level +#of this repository contains the full copyright notices and license terms. "Line" from trytond.osv import fields, OSV from trytond.wizard import Wizard -import datetime class Line(OSV): @@ -55,7 +55,8 @@ class Line(OSV): return False def default_date(self, cursor, user, context=None): - return datetime.date.today() + date_obj = self.pool.get('ir.date') + return date_obj.today(cursor, user, context=context) def default_active(self, cursor, user, context=None): return True