changeset f4fbcc2075d9 in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset&node=f4fbcc2075d9
description:
        Add optional column on tree view

        issue10989
        review374321002
diffstat:

 view/account_list.xml                      |   8 ++++----
 view/account_list_balance_sheet.xml        |  10 +++++-----
 view/account_template_list.xml             |   6 +++---
 view/account_template_tree.xml             |   6 +++---
 view/account_tree.xml                      |   8 ++++----
 view/account_tree2.xml                     |  11 ++++++-----
 view/fiscalyear_list_close.xml             |   2 +-
 view/fiscalyear_tree.xml                   |   3 ++-
 view/general_ledger_account_list.xml       |   8 ++++----
 view/general_ledger_line_list.xml          |  20 ++++++++++----------
 view/move_line_list_payable_receivable.xml |  13 +++++++------
 view/move_line_tree.xml                    |  15 ++++++++-------
 view/move_line_tree_move.xml               |   6 +++---
 view/move_tree.xml                         |  16 ++++++++--------
 view/party_tree.xml                        |   6 +++---
 view/period_list_close.xml                 |   6 +++---
 view/period_tree.xml                       |   4 ++--
 view/tax_code_list.xml                     |   2 +-
 view/tax_code_template_tree.xml            |   4 ++--
 view/tax_code_tree.xml                     |   2 +-
 view/tax_code_tree2.xml                    |   5 +++--
 view/tax_list.xml                          |   6 +++---
 view/tax_rule_template_tree.xml            |   4 ++--
 view/tax_rule_tree.xml                     |   3 ++-
 view/tax_template_list.xml                 |   6 +++---
 view/tax_template_tree.xml                 |   6 +++---
 view/writeoff_tree.xml                     |   2 +-
 27 files changed, 97 insertions(+), 91 deletions(-)

diffs (435 lines):

diff -r b10e9d43c587 -r f4fbcc2075d9 view/account_list.xml
--- a/view/account_list.xml     Thu Feb 03 22:34:01 2022 +0100
+++ b/view/account_list.xml     Thu Feb 03 23:13:26 2022 +0100
@@ -3,8 +3,8 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="rec_name" expand="2"/>
-    <field name="company" expand="1"/>
-    <field name="type" expand="1"/>
-    <field name="debit_type" expand="1"/>
-    <field name="credit_type" expand="1"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="type" expand="1" optional="1"/>
+    <field name="debit_type" expand="1" optional="1"/>
+    <field name="credit_type" expand="1" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/account_list_balance_sheet.xml
--- a/view/account_list_balance_sheet.xml       Thu Feb 03 22:34:01 2022 +0100
+++ b/view/account_list_balance_sheet.xml       Thu Feb 03 23:13:26 2022 +0100
@@ -2,10 +2,10 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree keyword_open="1">
-    <field name="code"/>
+    <field name="code" optional="0"/>
     <field name="name" expand="1"/>
-    <field name="debit"/>
-    <field name="credit"/>
-    <field name="balance"/>
-    <field name="amount_second_currency"/>
+    <field name="debit" optional="0"/>
+    <field name="credit" optional="0"/>
+    <field name="balance" optional="0"/>
+    <field name="amount_second_currency" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/account_template_list.xml
--- a/view/account_template_list.xml    Thu Feb 03 22:34:01 2022 +0100
+++ b/view/account_template_list.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -3,7 +3,7 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="rec_name" expand="2"/>
-    <field name="type" expand="1"/>
-    <field name="debit_type" expand="1"/>
-    <field name="credit_type" expand="1"/>
+    <field name="type" expand="1" optional="1"/>
+    <field name="debit_type" expand="1" optional="1"/>
+    <field name="credit_type" expand="1" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/account_template_tree.xml
--- a/view/account_template_tree.xml    Thu Feb 03 22:34:01 2022 +0100
+++ b/view/account_template_tree.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -3,7 +3,7 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="rec_name" expand="2"/>
-    <field name="type" expand="1"/>
-    <field name="debit_type" expand="1"/>
-    <field name="credit_type" expand="1"/>
+    <field name="type" expand="1" optional="1"/>
+    <field name="debit_type" expand="1" optional="1"/>
+    <field name="credit_type" expand="1" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/account_tree.xml
--- a/view/account_tree.xml     Thu Feb 03 22:34:01 2022 +0100
+++ b/view/account_tree.xml     Thu Feb 03 23:13:26 2022 +0100
@@ -3,8 +3,8 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="rec_name" expand="2"/>
-    <field name="company" expand="1"/>
-    <field name="type" expand="1"/>
-    <field name="debit_type" expand="1"/>
-    <field name="credit_type" expand="1"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="type" expand="1" optional="1"/>
+    <field name="debit_type" expand="1" optional="1"/>
+    <field name="credit_type" expand="1" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/account_tree2.xml
--- a/view/account_tree2.xml    Thu Feb 03 22:34:01 2022 +0100
+++ b/view/account_tree2.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -3,9 +3,10 @@
 this repository contains the full copyright notices and license terms. -->
 <tree keyword_open="1">
     <field name="name" expand="2"/>
-    <field name="code"/>
-    <field name="debit"/>
-    <field name="credit"/>
-    <field name="balance"/>
-    <field name="amount_second_currency"/>
+    <field name="code" optional="0"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="debit" optional="0"/>
+    <field name="credit" optional="0"/>
+    <field name="balance" optional="0"/>
+    <field name="amount_second_currency" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/fiscalyear_list_close.xml
--- a/view/fiscalyear_list_close.xml    Thu Feb 03 22:34:01 2022 +0100
+++ b/view/fiscalyear_list_close.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -3,7 +3,7 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="name" icon="icon" expand="1"/>
-    <field name="company" expand="1"/>
+    <field name="company" expand="1" optional="1"/>
     <button name="reopen"/>
     <button name="close"/>
     <button name="lock_"/>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/fiscalyear_tree.xml
--- a/view/fiscalyear_tree.xml  Thu Feb 03 22:34:01 2022 +0100
+++ b/view/fiscalyear_tree.xml  Thu Feb 03 23:13:26 2022 +0100
@@ -2,6 +2,7 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
-    <field name="name"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="name" expand="2"/>
     <field name="state"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/general_ledger_account_list.xml
--- a/view/general_ledger_account_list.xml      Thu Feb 03 22:34:01 2022 +0100
+++ b/view/general_ledger_account_list.xml      Thu Feb 03 23:13:26 2022 +0100
@@ -3,8 +3,8 @@
 this repository contains the full copyright notices and license terms. -->
 <tree keyword_open="1">
     <field name="account" expand="1"/>
-    <field name="start_balance" sum="Start Balance"/>
-    <field name="debit" sum="Debit"/>
-    <field name="credit" sum="Credit"/>
-    <field name="end_balance" sum="End Balance"/>
+    <field name="start_balance" sum="Start Balance" optional="0"/>
+    <field name="debit" sum="Debit" optional="0"/>
+    <field name="credit" sum="Credit" optional="0"/>
+    <field name="end_balance" sum="End Balance" optional="0"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/general_ledger_line_list.xml
--- a/view/general_ledger_line_list.xml Thu Feb 03 22:34:01 2022 +0100
+++ b/view/general_ledger_line_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -4,14 +4,14 @@
 <tree>
     <field name="date"/>
     <field name="account" expand="1"/>
-    <field name="party" expand="1"/>
-    <field name="move"/>
-    <field name="description" expand="1"/>
-    <field name="move_description" expand="1"/>
-    <field name="origin"/>
-    <field name="reconciliation"/>
-    <field name="state"/>
-    <field name="debit" sum="Debit"/>
-    <field name="credit" sum="Credit"/>
-    <field name="balance"/>
+    <field name="party" expand="1" optional="0"/>
+    <field name="move" optional="0"/>
+    <field name="description" expand="1" optional="1"/>
+    <field name="move_description" expand="1" optional="1"/>
+    <field name="origin" optional="1"/>
+    <field name="reconciliation" optional="1"/>
+    <field name="state" optional="1"/>
+    <field name="debit" sum="Debit" optional="0"/>
+    <field name="credit" sum="Credit" optional="0"/>
+    <field name="balance" optional="0"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/move_line_list_payable_receivable.xml
--- a/view/move_line_list_payable_receivable.xml        Thu Feb 03 22:34:01 
2022 +0100
+++ b/view/move_line_list_payable_receivable.xml        Thu Feb 03 23:13:26 
2022 +0100
@@ -2,13 +2,14 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
+    <field name="company" expand="1" optional="1"/>
     <field name="maturity_date"/>
     <field name="party"/>
     <field name="amount"/>
-    <field name="move"/>
-    <field name="move_origin"/>
-    <field name="origin"/>
-    <field name="move_description"/>
-    <field name="description"/>
-    <field name="reconciliation"/>
+    <field name="move" optional="1"/>
+    <field name="move_origin" optional="1"/>
+    <field name="origin" optional="1"/>
+    <field name="move_description" optional="1"/>
+    <field name="description" optional="1"/>
+    <field name="reconciliation" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/move_line_tree.xml
--- a/view/move_line_tree.xml   Thu Feb 03 22:34:01 2022 +0100
+++ b/view/move_line_tree.xml   Thu Feb 03 23:13:26 2022 +0100
@@ -2,18 +2,19 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree editable="1" on_write="on_write">
+    <field name="company" expand="1" optional="1"/>
     <field name="move"/>
-    <field name="move_origin" expand="1"/>
-    <field name="origin" expand="1"/>
+    <field name="move_origin" expand="1" optional="1"/>
+    <field name="origin" expand="1" optional="1"/>
     <field name="date"/>
     <field name="account" expand="1"/>
     <field name="party" expand="1"/>
     <field name="debit" sum="Debit"/>
     <field name="credit" sum="Credit"/>
-    <field name="tax_lines"/>
-    <field name="description" expand="1"/>
-    <field name="move_description" expand="1"/>
-    <field name="reconciliation"/>
+    <field name="tax_lines" optional="1"/>
+    <field name="description" expand="1" optional="1"/>
+    <field name="move_description" expand="1" optional="1"/>
+    <field name="reconciliation" optional="1"/>
     <field name="state"/>
-    <field name="move_state"/>
+    <field name="move_state" optional="0"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/move_line_tree_move.xml
--- a/view/move_line_tree_move.xml      Thu Feb 03 22:34:01 2022 +0100
+++ b/view/move_line_tree_move.xml      Thu Feb 03 23:13:26 2022 +0100
@@ -7,7 +7,7 @@
     <field name="party" expand="1"/>
     <field name="debit" sum="Debit"/>
     <field name="credit" sum="Credit"/>
-    <field name="tax_lines"/>
-    <field name="description" expand="1"/>
-    <field name="reconciliation"/>
+    <field name="tax_lines" optional="1"/>
+    <field name="description" expand="1" optional="1"/>
+    <field name="reconciliation" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/move_tree.xml
--- a/view/move_tree.xml        Thu Feb 03 22:34:01 2022 +0100
+++ b/view/move_tree.xml        Thu Feb 03 23:13:26 2022 +0100
@@ -2,15 +2,15 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
-    <field name="company"/>
-    <field name="number"/>
-    <field name="post_number"/>
-    <field name="journal"/>
-    <field name="period"/>
+    <field name="company" optional="1"/>
+    <field name="number" optional="0"/>
+    <field name="post_number" optional="1"/>
+    <field name="journal" optional="0"/>
+    <field name="period" optional="1"/>
     <field name="date"/>
-    <field name="post_date"/>
-    <field name="origin"/>
-    <field name="description" expand="1"/>
+    <field name="post_date" optional="1"/>
+    <field name="origin" optional="0"/>
+    <field name="description" expand="1" optional="1"/>
     <field name="state"/>
     <button name="post"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/party_tree.xml
--- a/view/party_tree.xml       Thu Feb 03 22:34:01 2022 +0100
+++ b/view/party_tree.xml       Thu Feb 03 23:13:26 2022 +0100
@@ -2,8 +2,8 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <data>
-    <xpath expr="/tree/field[@name='tax_identifier']" position="after">
-        <field name="receivable_today"/>
-        <field name="payable_today"/>
+    <xpath expr="/tree" position="inside">
+        <field name="receivable_today" optional="0"/>
+        <field name="payable_today" optional="0"/>
     </xpath>
 </data>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/period_list_close.xml
--- a/view/period_list_close.xml        Thu Feb 03 22:34:01 2022 +0100
+++ b/view/period_list_close.xml        Thu Feb 03 23:13:26 2022 +0100
@@ -3,9 +3,9 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="name" icon="icon" expand="1"/>
-    <field name="company" expand="1"/>
-    <field name="fiscalyear" expand="1"/>
-    <field name="type"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="fiscalyear" expand="1" optional="1"/>
+    <field name="type" optional="0"/>
     <button name="reopen"/>
     <button name="close"/>
     <button name="lock_"/>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/period_tree.xml
--- a/view/period_tree.xml      Thu Feb 03 22:34:01 2022 +0100
+++ b/view/period_tree.xml      Thu Feb 03 23:13:26 2022 +0100
@@ -2,8 +2,8 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
-    <field name="company"/>
-    <field name="name"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="name" expand="2"/>
     <field name="type"/>
     <field name="state"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_code_list.xml
--- a/view/tax_code_list.xml    Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_code_list.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -2,7 +2,7 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
+    <field name="company" expand="1" optional="1"/>
     <field name="code"/>
     <field name="name" expand="2"/>
-    <field name="company" expand="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_code_template_tree.xml
--- a/view/tax_code_template_tree.xml   Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_code_template_tree.xml   Thu Feb 03 23:13:26 2022 +0100
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="name" expand="2"/>
-    <field name="code"/>
-    <field name="account" expand="1"/>
+    <field name="code" optional="1"/>
+    <field name="account" expand="1" optional="0"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_code_tree.xml
--- a/view/tax_code_tree.xml    Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_code_tree.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -2,7 +2,7 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
+    <field name="company" expand="2" optional="1"/>
     <field name="code"/>
     <field name="name" expand="2"/>
-    <field name="company" expand="2"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_code_tree2.xml
--- a/view/tax_code_tree2.xml   Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_code_tree2.xml   Thu Feb 03 23:13:26 2022 +0100
@@ -3,6 +3,7 @@
 this repository contains the full copyright notices and license terms. -->
 <tree keyword_open="1">
     <field name="code"/>
-    <field name="name" expand="1"/>
-    <field name="amount"/>
+    <field name="name" expand="1" optional="0"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="amount" optional="0"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_list.xml
--- a/view/tax_list.xml Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -2,8 +2,8 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree sequence="sequence">
+    <field name="company" expand="1" optional="1"/>
     <field name="name" expand="1"/>
-    <field name="group"/>
-    <field name="type"/>
-    <field name="company" expand="1"/>
+    <field name="group" optional="1"/>
+    <field name="type" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_rule_template_tree.xml
--- a/view/tax_rule_template_tree.xml   Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_rule_template_tree.xml   Thu Feb 03 23:13:26 2022 +0100
@@ -2,7 +2,7 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
-    <field name="account" expand="1"/>
+    <field name="account" expand="1" optional="0"/>
     <field name="name" expand="2"/>
-    <field name="kind"/>
+    <field name="kind" optional="1"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_rule_tree.xml
--- a/view/tax_rule_tree.xml    Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_rule_tree.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -2,6 +2,7 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
-    <field name="name" expand="1"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="name" expand="2"/>
     <field name="kind"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_template_list.xml
--- a/view/tax_template_list.xml        Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_template_list.xml        Thu Feb 03 23:13:26 2022 +0100
@@ -3,7 +3,7 @@
 this repository contains the full copyright notices and license terms. -->
 <tree sequence="sequence">
     <field name="name" expand="1"/>
-    <field name="group"/>
-    <field name="type"/>
-    <field name="account" expand="1"/>
+    <field name="group" optional="1"/>
+    <field name="type" optional="1"/>
+    <field name="account" expand="1" optional="0"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/tax_template_tree.xml
--- a/view/tax_template_tree.xml        Thu Feb 03 22:34:01 2022 +0100
+++ b/view/tax_template_tree.xml        Thu Feb 03 23:13:26 2022 +0100
@@ -3,7 +3,7 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="name" expand="1"/>
-    <field name="group"/>
-    <field name="type"/>
-    <field name="account" expand="1"/>
+    <field name="group" optional="1"/>
+    <field name="type" optional="1"/>
+    <field name="account" expand="1" optional="0"/>
 </tree>
diff -r b10e9d43c587 -r f4fbcc2075d9 view/writeoff_tree.xml
--- a/view/writeoff_tree.xml    Thu Feb 03 22:34:01 2022 +0100
+++ b/view/writeoff_tree.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -2,7 +2,7 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
+    <field name="company" expand="1" optional="1"/>
     <field name="name" expand="2"/>
     <field name="journal" expand="1"/>
-    <field name="company" expand="1"/>
 </tree>

Reply via email to