line: party nicht mehr required, form optimiert

This commit is contained in:
Frederik Jaeckel 2022-08-19 16:41:50 +02:00
parent a40106a734
commit 50c3ef04bc
2 changed files with 10 additions and 10 deletions

View file

@ -103,7 +103,6 @@ class Line(Workflow, ModelSQL, ModelView):
states={
'readonly': STATES['readonly'],
'invisible': ~Eval('bookingtype', '').in_(['in', 'out']),
'required': Eval('bookingtype', '').in_(['in', 'out']),
}, depends=DEPENDS+['bookingtype'])
payee = fields.Function(fields.Reference(string='Payee', readonly=True,
selection=sel_payee), 'on_change_with_payee', searcher='search_payee')