Use _field for sql_format of Function field

It is useful to allow to use sql_format on Function field when writing SQL
query that emulate the field.

issue6410
review34051002
This commit is contained in:
Cédric Krier committed 2017-04-01 19:55:35 +02:00
1 parent 826f30219d
commit a178546d0d
1 file changed
+3
+3
View File
@@ -62,6 +62,9 @@ class Function(Field):
def set_rpc(self, model):
self._field.set_rpc(model)
def sql_format(self, value):
return self._field.sql_format(value)
def sql_type(self):
return None