From 792dfefc8281fd7e1818d88bc2ba3384ce1f484c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 3 Nov 2009 15:19:46 +0100 Subject: [PATCH] Don't convert Date and DateTime into string --- trytond/backend/fields.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/trytond/backend/fields.py b/trytond/backend/fields.py index bc0febeabe..513fe6ce4d 100644 --- a/trytond/backend/fields.py +++ b/trytond/backend/fields.py @@ -76,11 +76,17 @@ class Numeric(Float): class Date(Field): - pass + + @staticmethod + def sql_format(value): + return value or None class DateTime(Field): - pass + + @staticmethod + def sql_format(value): + return value or None class Time(Field):