lims_analysis_sheet: add planned analysis based on start date (2)

This commit is contained in:
Adrián Bernardi 2023-06-14 11:42:55 -03:00
parent c0e98c443f
commit 277264ac86
1 changed files with 2 additions and 0 deletions

View File

@ -80,11 +80,13 @@ class Planification(metaclass=PoolMeta):
('planification', '=', self.id),
('professional', '=', key[1]),
('analysis_sheet.template', '=', key[0]),
('analysis_sheet.date2', '=', self.start_date),
]):
continue
draft_sheet = AnalysisSheet.search([
('template', '=', key[0]),
('professional', '=', key[1]),
('date2', '=', self.start_date),
('state', '=', 'draft'),
])
if not draft_sheet: