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={ states={
'readonly': STATES['readonly'], 'readonly': STATES['readonly'],
'invisible': ~Eval('bookingtype', '').in_(['in', 'out']), 'invisible': ~Eval('bookingtype', '').in_(['in', 'out']),
'required': Eval('bookingtype', '').in_(['in', 'out']),
}, depends=DEPENDS+['bookingtype']) }, depends=DEPENDS+['bookingtype'])
payee = fields.Function(fields.Reference(string='Payee', readonly=True, payee = fields.Function(fields.Reference(string='Payee', readonly=True,
selection=sel_payee), 'on_change_with_payee', searcher='search_payee') selection=sel_payee), 'on_change_with_payee', searcher='search_payee')

View file

@ -23,27 +23,28 @@ full copyright notices and license terms. -->
<label name="reconciliation"/> <label name="reconciliation"/>
<field name="reconciliation"/> <field name="reconciliation"/>
<group id="grpparty" colspan="2" col="4">
<label name="party"/>
<field name="party"/>
<label name="booktransf"/>
<field name="booktransf"/>
</group>
<label name="amount"/> <label name="amount"/>
<field name="amount" symbol="currency"/> <field name="amount" symbol="currency"/>
<label colspan="2" id="lab1" string=" "/>
<label name="reference"/> <label name="reference"/>
<field name="reference"/> <field name="reference"/>
<label name="party"/>
<field name="party"/>
<label name="category"/> <label name="category"/>
<field name="category"/> <field name="category"/>
<newline/> <newline/>
<group name="description" colspan="4" col="1" string="Description"> <label name="booktransf"/>
<field name="description"/> <field name="booktransf"/>
<newline/>
<group name="description" colspan="4" col="1" string="Description" yexpand="1">
<field name="description" yfill="1"/>
</group> </group>
<newline/> <newline/>
<field name="references" colspan="4"/> <field name="references" colspan="4" yexpand="1"/>
<newline/> <newline/>
<field name="owner_cashbook"/> <field name="owner_cashbook"/>