diff --git a/bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py b/bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py index c914b62e8e8eecbbbd99b155ab6a4e6dd144f125..de7f7b54a5dd4bf421a79588bad0c98bf1c34388 100644 --- a/bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py +++ b/bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py @@ -659,7 +659,7 @@ def renderField(traversed_document, field, form, value=None, meta_type=None, key "hide_day": field.get_value('hide_day'), "hidden_day_is_last_day": field.get_value('hidden_day_is_last_day'), }) - date_value = getFieldDefault(form, field, key, value) + date_value = result["default"] if not date_value and field.get_value('default_now'): date_value = DateTime() if same_type(date_value, DateTime()):