diff --git a/CHANGES.rst b/CHANGES.rst index dcd7a2f1f6..9002dd066e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,7 @@ Changelog 2.3.0 (unreleased) ------------------ - +- #2132 Add a default date for batch creation - #2129 Fix Traceback when invalidating a Sample with Remarks - #2128 Fix referenceresults widget view mode - #2127 Fix instrument expiry date display in listing view diff --git a/src/bika/lims/content/batch.py b/src/bika/lims/content/batch.py index 5b556881c3..0d30520132 100644 --- a/src/bika/lims/content/batch.py +++ b/src/bika/lims/content/batch.py @@ -46,6 +46,7 @@ from Products.CMFCore.utils import getToolByName from senaite.core.catalog import SAMPLE_CATALOG from zope.interface import implements +from DateTime.DateTime import DateTime @indexer(IBatch) @@ -98,6 +99,7 @@ def BatchDate(instance): DateTimeField( 'BatchDate', required=False, + default_method=DateTime, widget=DateTimeWidget( label=_('Date'), ),