mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims_industry: results report: fix getting precedents by default
This commit is contained in:
parent
5e0317b755
commit
17c034fb17
|
@ -456,6 +456,8 @@ class ResultsReportVersionDetailSample(metaclass=PoolMeta):
|
|||
def get_default_precedents(sample):
|
||||
pool = Pool()
|
||||
Notebook = pool.get('lims.notebook')
|
||||
if not sample.component:
|
||||
return []
|
||||
precedents = Notebook.search([
|
||||
('id', '!=', sample.notebook.id),
|
||||
('component', '=', sample.component),
|
||||
|
|
Loading…
Reference in a new issue