mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims: update "urgent" attribute on notebook lines when modifying service (2)
This commit is contained in:
parent
5144151728
commit
4a87aa80ac
|
@ -1087,13 +1087,14 @@ class Service(ModelSQL, ModelView):
|
|||
pool = Pool()
|
||||
NotebookLine = pool.get('lims.notebook.line')
|
||||
|
||||
notebook_lines = NotebookLine.search([
|
||||
('service', 'in', [s.id for s in services]),
|
||||
])
|
||||
if notebook_lines:
|
||||
NotebookLine.write(notebook_lines, {
|
||||
'urgent': urgent,
|
||||
})
|
||||
with Transaction().set_context(_check_access=False):
|
||||
notebook_lines = NotebookLine.search([
|
||||
('service', 'in', [s.id for s in services]),
|
||||
])
|
||||
if notebook_lines:
|
||||
NotebookLine.write(notebook_lines, {
|
||||
'urgent': urgent,
|
||||
})
|
||||
|
||||
@fields.depends('analysis', 'fraction', 'typification_domain',
|
||||
'laboratory', '_parent_fraction.id',
|
||||
|
|
Loading…
Reference in a new issue