line: party nicht mehr required, form optimiert
This commit is contained in:
parent
a40106a734
commit
50c3ef04bc
2 changed files with 10 additions and 10 deletions
1
line.py
1
line.py
|
@ -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')
|
||||
|
|
|
@ -23,27 +23,28 @@ full copyright notices and license terms. -->
|
|||
<label 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"/>
|
||||
<field name="amount" symbol="currency"/>
|
||||
<label colspan="2" id="lab1" string=" "/>
|
||||
<label name="reference"/>
|
||||
<field name="reference"/>
|
||||
|
||||
<label name="party"/>
|
||||
<field name="party"/>
|
||||
<label name="category"/>
|
||||
<field name="category"/>
|
||||
<newline/>
|
||||
|
||||
<group name="description" colspan="4" col="1" string="Description">
|
||||
<field name="description"/>
|
||||
<label name="booktransf"/>
|
||||
<field name="booktransf"/>
|
||||
<newline/>
|
||||
|
||||
<group name="description" colspan="4" col="1" string="Description" yexpand="1">
|
||||
<field name="description" yfill="1"/>
|
||||
</group>
|
||||
<newline/>
|
||||
|
||||
<field name="references" colspan="4"/>
|
||||
<field name="references" colspan="4" yexpand="1"/>
|
||||
<newline/>
|
||||
|
||||
<field name="owner_cashbook"/>
|
||||
|
|
Loading…
Reference in a new issue