Skip to content

Commit

Permalink
LIMS-1151: Made ClientSampleID and Client Batch ID to be required
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunga001 committed Oct 23, 2024
1 parent 898d33d commit d3973eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bika/aquaculture/extenders/analysisrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,6 @@ def fiddle(self, schema):
if schema.get("Sampler"):
if IBatch.providedBy(self.context.aq_parent):
schema["Sampler"].default = self.context.aq_parent.Sampler
schema["ClientSampleID"].required = True

return schema
1 change: 1 addition & 0 deletions src/bika/aquaculture/extenders/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def fiddle(self, schema):
if is_installed():
schema["Sampler"].vocabulary = getUsers(self.context, ["Sampler"])
schema["ClientBatchID"].widget.label = "Case Number"
schema["ClientBatchID"].required = True
schema["BatchLabels"].widget.label = "Case Labels"
schema[
"title"
Expand Down

0 comments on commit d3973eb

Please sign in to comment.