Files
tryton/modules/account_statement/view/statement_form.xml
Cédric Krier 14bc5d2a6c Use selection widget for journal fields
It is expected to have only a small number of journals.
But also it is uncommon to create of a new journal from a form.
So it provides a better user experience to use a selection widget.
2023-08-06 00:34:16 +02:00

50 lines
1.7 KiB
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form>
<label name="name"/>
<field name="name" colspan="3"/>
<label name="journal"/>
<field name="journal" widget="selection"/>
<label name="date"/>
<field name="date"/>
<label name="start_balance"/>
<group id="balances" col="-1">
<field name="start_balance"/>
<label name="balance"/>
<field name="balance"/>
</group>
<label name="end_balance"/>
<field name="end_balance"/>
<label name="total_amount"/>
<field name="total_amount"/>
<newline/>
<label name="number_of_lines"/>
<field name="number_of_lines"/>
<newline/>
<notebook colspan="4">
<page string="Statement Lines" col="4" id="statement_lines">
<field name="lines" colspan="4"
view_ids="account_statement.statement_line_view_tree_editable"/>
</page>
<page name="origins">
<field name="origins" colspan="4"/>
<label name="origin_file"/>
<field name="origin_file"/>
</page>
<page string="Other Info" id="info">
<label name="company"/>
<field name="company"/>
</page>
</notebook>
<label name="state"/>
<field name="state"/>
<group col="-1" colspan="2" id="buttons">
<button name="cancel" icon="tryton-cancel"/>
<button name="draft" icon="tryton-undo"/>
<button name="validate_statement" icon="tryton-forward"/>
<button name="reconcile" icon="tryton-search"/>
<button name="post" icon="tryton-ok"/>
</group>
</form>