From 38360583d2a34fc466239e8db679f144b21de4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Jun 2014 19:11:44 +0200 Subject: [PATCH] Fix SQLite Numeric domain value for None issue3930 review11281002 --- trytond/model/fields/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/model/fields/numeric.py b/trytond/model/fields/numeric.py index 359a6a0400..2a8dda319c 100644 --- a/trytond/model/fields/numeric.py +++ b/trytond/model/fields/numeric.py @@ -49,6 +49,6 @@ class Numeric(Float): type_ = self.sql_type().base if operator in ('in', 'not in'): return [Cast(Literal(v), type_) for v in value] - else: + elif value is not None: return Cast(Literal(value), type_) return value