changeset 19c06cff3a1e in modules/analytic_account:default
details:
https://hg.tryton.org/modules/analytic_account?cmd=changeset&node=19c06cff3a1e
description:
Add optional column on tree view
issue10989
review374321002
diffstat:
view/account_list.xml | 4 ++--
view/account_list2.xml | 5 +++--
view/account_tree.xml | 4 ++--
view/account_tree2.xml | 9 +++++----
view/move_line_list.xml | 8 +++++---
view/rule_list.xml | 6 +++---
6 files changed, 20 insertions(+), 16 deletions(-)
diffs (94 lines):
diff -r 8f46f6472f03 -r 19c06cff3a1e view/account_list.xml
--- a/view/account_list.xml Sat Dec 18 16:31:06 2021 +0100
+++ b/view/account_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -2,9 +2,9 @@
<!-- 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="rec_name" expand="2"/>
- <field name="company" expand="1"/>
- <field name="type"/>
+ <field name="type" optional="1"/>
<field name="name" tree_invisible="1"/>
<field name="code" tree_invisible="1"/>
</tree>
diff -r 8f46f6472f03 -r 19c06cff3a1e view/account_list2.xml
--- a/view/account_list2.xml Sat Dec 18 16:31:06 2021 +0100
+++ b/view/account_list2.xml Thu Feb 03 23:13:26 2022 +0100
@@ -2,7 +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="code"/>
+ <field name="company" expand="1" optional="1"/>
+ <field name="code" optional="0"/>
<field name="name" expand="1"/>
- <field name="type"/>
+ <field name="type" optional="1"/>
</tree>
diff -r 8f46f6472f03 -r 19c06cff3a1e view/account_tree.xml
--- a/view/account_tree.xml Sat Dec 18 16:31:06 2021 +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"/>
+ <field name="company" expand="1" optional="1"/>
+ <field name="type" optional="1"/>
<field name="name" tree_invisible="1"/>
<field name="code" tree_invisible="1"/>
</tree>
diff -r 8f46f6472f03 -r 19c06cff3a1e view/account_tree2.xml
--- a/view/account_tree2.xml Sat Dec 18 16:31:06 2021 +0100
+++ b/view/account_tree2.xml Thu Feb 03 23:13:26 2022 +0100
@@ -3,8 +3,9 @@
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="company" expand="1" optional="1"/>
+ <field name="code" optional="0"/>
+ <field name="debit" optional="0"/>
+ <field name="credit" optional="0"/>
+ <field name="balance" optional="0"/>
</tree>
diff -r 8f46f6472f03 -r 19c06cff3a1e view/move_line_list.xml
--- a/view/move_line_list.xml Sat Dec 18 16:31:06 2021 +0100
+++ b/view/move_line_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -2,10 +2,12 @@
<!-- 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="move"/>
- <field name="origin" expand="1"/>
- <field name="description" expand="1"/>
- <field name="move_description" expand="1"/>
+ <field name="move_origin" expand="1" optional="1"/>
+ <field name="origin" expand="1" optional="1"/>
+ <field name="description" expand="1" optional="1"/>
+ <field name="move_description" expand="1" optional="1"/>
<field name="date"/>
<field name="account" expand="1"/>
<field name="party" expand="1"/>
diff -r 8f46f6472f03 -r 19c06cff3a1e view/rule_list.xml
--- a/view/rule_list.xml Sat Dec 18 16:31:06 2021 +0100
+++ b/view/rule_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"/>
+ <field name="company" expand="1" optional="1"/>
<field name="account" expand="2"/>
- <field name="party" expand="1"/>
- <field name="journal" expand="1"/>
+ <field name="party" expand="1" optional="0"/>
+ <field name="journal" expand="1" optional="0"/>
</tree>