diff --git a/product/ERP5Form/FormulatorPatch.py b/product/ERP5Form/FormulatorPatch.py index a513ce989214e1d6434fdf6a5f2108b4c17da955..5a5655e58631a67a6d9f320444e8d6c6535a262a 100755 --- a/product/ERP5Form/FormulatorPatch.py +++ b/product/ERP5Form/FormulatorPatch.py @@ -624,5 +624,6 @@ class PatchedDateTimeWidget(DateTimeWidget): else: return date_result -DateTimeWidget.render = PatchedDateTimeWidget.render +PatchedDateTimeWidgetInstance = PatchedDateTimeWidget() +DateTimeField.widget = PatchedDateTimeWidgetInstance