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.
This commit is contained in:
Cédric Krier
2023-08-06 00:34:16 +02:00
parent 5ce06c7d69
commit 14bc5d2a6c
34 changed files with 35 additions and 35 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ this repository contains the full copyright notices and license terms. -->
<separator id="currency_exchange" string="Currency Exchange" colspan="4"/>
<label name="currency_exchange_journal" string="Journal"/>
<field name="currency_exchange_journal"/>
<field name="currency_exchange_journal" widget="selection"/>
<newline/>
<label name="currency_exchange_credit_account" string="Credit Account"/>
<field name="currency_exchange_credit_account"/>
@@ -6,7 +6,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="fiscalyear"/>
<newline/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="period"/>
<field name="period"/>
<label name="credit_account"/>
+1 -1
View File
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<form col="6">
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="period"/>
<field name="period"/>
<label name="active"/>
+1 -1
View File
@@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="post_number"/>
<field name="post_number"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="period"/>
<field name="period"/>
<label name="date"/>
@@ -5,7 +5,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="party"/>
<field name="party"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="description"/>
<field name="description" colspan="3"/>
+1 -1
View File
@@ -8,7 +8,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="period"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="move"/>
<field name="move"/>
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<form>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<newline/>
<label name="description"/>
<field name="description" colspan="3"/>
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<form>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<newline/>
<label name="description"/>
+1 -1
View File
@@ -11,7 +11,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="company"/>
<field name="company"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="description"/>
<field name="description" colspan="3"/>
<field name="lines" colspan="4"/>
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<form>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="period"/>
<field name="period"/>
</form>
@@ -1,13 +1,13 @@
<?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 cursor="journal">
<form cursor="writeoff">
<label name="amount"/>
<field name="amount"/>
<label name="date"/>
<field name="date"/>
<label name="writeoff"/>
<field name="writeoff"/>
<field name="writeoff" widget="selection"/>
<newline/>
<label name="description"/>
<field name="description" colspan="3"/>
+1 -1
View File
@@ -7,7 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="active"/>
<field name="active"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="company"/>
<field name="company"/>
<label name="debit_account"/>
+1 -1
View File
@@ -28,7 +28,7 @@
<label name="company"/>
<field name="company"/>
<label name="account_journal"/>
<field name="account_journal"/>
<field name="account_journal" widget="selection"/>
<label name="depreciation_method"/>
<field name="depreciation_method"/>
<label name="frequency"/>
@@ -9,7 +9,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="product"/>
<field name="product"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="compute_method"/>
<field name="compute_method"/>
<newline/>
@@ -5,7 +5,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="type"/>
<field name="type"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="number"/>
<field name="number"/>
<label name="party"/>
@@ -7,7 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="active"/>
<field name="active"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="company"/>
<field name="company"/>
<label name="debit_account"/>
@@ -8,7 +8,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="type"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="amount"/>
<field name="amount"/>
@@ -8,7 +8,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="period"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="move"/>
<field name="move"/>
@@ -5,6 +5,6 @@ this repository contains the full copyright notices and license terms. -->
<label name="currency"/>
<field name="currency"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<field name="journals" colspan="4" invisible="1"/>
</form>
@@ -8,7 +8,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="sequence"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="currency"/>
<field name="currency"/>
</form>
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<form>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="kind"/>
<field name="kind"/>
<label name="party"/>
@@ -7,7 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="company"/>
<field name="company"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="kind"/>
<field name="kind"/>
<separator id="payments" string="Payments Info" colspan="4"/>
@@ -7,7 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="clearing_account"/>
<field name="clearing_account"/>
<label name="clearing_journal"/>
<field name="clearing_journal"/>
<field name="clearing_journal" widget="selection"/>
<label name="clearing_posting_delay"/>
<field name="clearing_posting_delay"/>
</xpath>
@@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="account"/>
<field name="account"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="priorities"/>
<field name="priorities"/>
@@ -5,7 +5,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="statement"/>
<field name="statement"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="number"/>
<field name="number"/>
<label name="date"/>
@@ -5,7 +5,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="name"/>
<field name="name" colspan="3"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="date"/>
<field name="date"/>
<label name="start_balance"/>
@@ -7,7 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="active"/>
<field name="active"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="currency"/>
<field name="currency"/>
<label name="company"/>
@@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="company"/>
<field name="company"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label id="between" string="Between"/>
<group id="range" col="-1" colspan="3">
@@ -5,7 +5,7 @@ this repository contains the full copyright notices and license terms. -->
<xpath expr="/form" position="inside">
<separator id="stock" string="Stock" colspan="4"/>
<label name="stock_journal"/>
<field name="stock_journal"/>
<field name="stock_journal" widget="selection"/>
<newline/>
</xpath>
</data>
+1 -1
View File
@@ -11,7 +11,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="party"/>
<field name="party"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<separator id="analytic_accounts" colspan="4"/>
<field name="analytic_accounts" colspan="4"/>
</form>
@@ -8,7 +8,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="company"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="account"/>
<field name="account"/>
</form>
+1 -1
View File
@@ -7,7 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="company"/>
<field name="company"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="tax_included"/>
<field name="tax_included"/>
<label name="sequence"/>
@@ -6,7 +6,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="shop" colspan="3"/>
<label name="journal"/>
<field name="journal"/>
<field name="journal" widget="selection"/>
<label name="sequence"/>
<field name="sequence"/>
@@ -4,6 +4,6 @@ this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//notebook/page[@id='vsf']" position="inside">
<label name="stripe_journal"/>
<field name="stripe_journal"/>
<field name="stripe_journal" widget="selection"/>
</xpath>
</data>