Commit 44914a3 1 parent 8a073ab commit 44914a3 Copy full SHA for 44914a3
File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Changelog
8
8
- #2131 Allow to edit the analysis service sort keys in the services listing
9
9
- #2133 Filter Contact and CCContact by Client on first click
10
10
- #2134 Render unit after result and interim fields
11
+ - #2132 Add a default date for batch creation
11
12
- #2129 Fix Traceback when invalidating a Sample with Remarks
12
13
- #2128 Fix referenceresults widget view mode
13
14
- #2127 Fix instrument expiry date display in listing view
Original file line number Diff line number Diff line change 32
32
from bika .lims .interfaces import IBatch
33
33
from bika .lims .interfaces import ICancellable
34
34
from bika .lims .interfaces import IClient
35
+ from DateTime .DateTime import DateTime
35
36
from plone .app .folder .folder import ATFolder
36
37
from plone .indexer import indexer
37
38
from Products .Archetypes .public import DateTimeField
@@ -98,6 +99,7 @@ def BatchDate(instance):
98
99
DateTimeField (
99
100
'BatchDate' ,
100
101
required = False ,
102
+ default_method = DateTime ,
101
103
widget = DateTimeWidget (
102
104
label = _ ('Date' ),
103
105
),
You can’t perform that action at this time.
0 commit comments