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"/>