summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odoo/tests/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py
index a0caa54f547..d8ea680415c 100644
--- a/odoo/tests/common.py
+++ b/odoo/tests/common.py
@@ -2389,6 +2389,7 @@ def _cleanup_from_default(type_, value):
return odoo.fields.Datetime.to_string(value)
elif type_ == 'date' and isinstance(value, date):
return odoo.fields.Date.to_string(value)
+ return value
def _get_node(view, f, *arg):
""" Find etree node for the field ``f`` in the view's arch