Conditions | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
29 | def initialized(self, data): |
||
30 | # disable ManualID if necessary |
||
31 | if self.context.objectIds(): |
||
32 | self.add_readonly_field( |
||
33 | "ManualId", _( |
||
34 | "The Reference Sample ID cannot be changed because it is " |
||
35 | "already associated with other objects, such as QC " |
||
36 | "analyses.", |
||
37 | ) |
||
38 | ) |
||
39 | |||
40 | return self.data |
||
41 |