lims: entry: not allow changing Party when there are loaded samples
This commit is contained in:
parent
683af25545
commit
667e54bde9
|
@ -55,9 +55,10 @@ class Entry(Workflow, ModelSQL, ModelView):
|
|||
states={
|
||||
'required': ~Eval('multi_party'),
|
||||
'invisible': Bool(Eval('multi_party')),
|
||||
'readonly': Eval('state') != 'draft',
|
||||
'readonly': ((Eval('state') != 'draft')
|
||||
| (Eval('samples', [0]))),
|
||||
},
|
||||
depends=['multi_party', 'state'])
|
||||
depends=['multi_party', 'state', 'samples'])
|
||||
invoice_party = fields.Many2One('party.party', 'Invoice party',
|
||||
states={
|
||||
'required': True,
|
||||
|
|
Loading…
Reference in New Issue