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):