changeset 6312546cf5ca in modules/commission:default
details:
https://hg.tryton.org/modules/commission?cmd=changeset&node=6312546cf5ca
description:
Add optional column on tree view
issue10989
review374321002
diffstat:
view/agent_list.xml | 6 +++---
view/commission_list.xml | 6 +++---
view/reporting_agent_list.xml | 8 ++++----
3 files changed, 10 insertions(+), 10 deletions(-)
diffs (48 lines):
diff -r d2acf3a9425e -r 6312546cf5ca view/agent_list.xml
--- a/view/agent_list.xml Sun Jan 30 20:17:47 2022 +0100
+++ b/view/agent_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="party" expand="1"/>
<field name="type_"/>
- <field name="company" expand="1"/>
- <field name="plan" expand="1"/>
- <field name="pending_amount"/>
+ <field name="plan" expand="1" optional="0"/>
+ <field name="pending_amount" optional="1"/>
</tree>
diff -r d2acf3a9425e -r 6312546cf5ca view/commission_list.xml
--- a/view/commission_list.xml Sun Jan 30 20:17:47 2022 +0100
+++ b/view/commission_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -4,9 +4,9 @@
<tree>
<field name="type_"/>
<field name="agent" expand="1"/>
- <field name="date"/>
- <field name="base_amount"/>
- <field name="amount"/>
+ <field name="date" optional="0"/>
+ <field name="base_amount" optional="1"/>
+ <field name="amount" optional="0"/>
<field name="invoice_state"/>
<button name="invoice" tree_invisible="1"/>
</tree>
diff -r d2acf3a9425e -r 6312546cf5ca view/reporting_agent_list.xml
--- a/view/reporting_agent_list.xml Sun Jan 30 20:17:47 2022 +0100
+++ b/view/reporting_agent_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="agent" expand="1"/>
- <field name="number"/>
- <field name="base_amount"/>
- <field name="base_amount_trend" expand="1"/>
- <field name="amount"/>
+ <field name="number" optional="1"/>
+ <field name="base_amount" optional="0"/>
+ <field name="base_amount_trend" expand="1" optional="0"/>
+ <field name="amount" optional="0"/>
</tree>