lims_analysis_sheet: add planned analysis based on start date (2)
This commit is contained in:
parent
c0e98c443f
commit
277264ac86
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue