mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims: do not allow modifying fields of reported fractions
This commit is contained in:
parent
fd4991b9a0
commit
801867f412
|
@ -1410,8 +1410,8 @@ class Fraction(ModelSQL, ModelView):
|
|||
__name__ = 'lims.fraction'
|
||||
_rec_name = 'number'
|
||||
|
||||
_states = {'readonly': Bool(Eval('confirmed'))}
|
||||
_depends = ['confirmed']
|
||||
_states = {'readonly': Bool(Eval('has_results_report'))}
|
||||
_depends = ['has_results_report']
|
||||
|
||||
number = fields.Char('Number', select=True, readonly=True)
|
||||
create_date2 = fields.Function(fields.DateTime('Create Date'),
|
||||
|
|
Loading…
Reference in a new issue