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

        issue10989
        review374321002
diffstat:

 view/cash_session_list.xml       |   6 +++---
 view/cash_transfer_type_list.xml |   6 +++---
 view/payment_method_list.xml     |   6 +++---
 view/point_list.xml              |  10 +++++-----
 view/sale_list.xml               |   5 +++--
 view/template_tree.xml           |   2 +-
 6 files changed, 18 insertions(+), 17 deletions(-)

diffs (92 lines):

diff -r 7967ff7bc913 -r a0280f1d7074 view/cash_session_list.xml
--- a/view/cash_session_list.xml        Sun Jan 23 12:54:56 2022 +0100
+++ b/view/cash_session_list.xml        Thu Feb 03 23:13:27 2022 +0100
@@ -3,9 +3,9 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="point" expand="1"/>
-    <field name="start_amount"/>
-    <field name="balance"/>
-    <field name="end_amount"/>
+    <field name="start_amount" optional="0"/>
+    <field name="balance" optional="0"/>
+    <field name="end_amount" optional="0"/>
     <field name="state"/>
     <button name="close"/>
     <button name="post" tree_invisible="1"/>
diff -r 7967ff7bc913 -r a0280f1d7074 view/cash_transfer_type_list.xml
--- a/view/cash_transfer_type_list.xml  Sun Jan 23 12:54:56 2022 +0100
+++ b/view/cash_transfer_type_list.xml  Thu Feb 03 23:13:27 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" expand="1" optional="1"/>
     <field name="name" expand="2"/>
-    <field name="company" expand="1"/>
-    <field name="journal" expand="1"/>
-    <field name="account" expand="1"/>
+    <field name="journal" expand="1" optional="1"/>
+    <field name="account" expand="1" optional="0"/>
 </tree>
diff -r 7967ff7bc913 -r a0280f1d7074 view/payment_method_list.xml
--- a/view/payment_method_list.xml      Sun Jan 23 12:54:56 2022 +0100
+++ b/view/payment_method_list.xml      Thu Feb 03 23:13:27 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" expand="1" optional="1"/>
     <field name="name" expand="2"/>
-    <field name="account" expand="1"/>
-    <field name="company" expand="1"/>
-    <field name="cash"/>
+    <field name="account" expand="1" optional="0"/>
+    <field name="cash" optional="0"/>
 </tree>
diff -r 7967ff7bc913 -r a0280f1d7074 view/point_list.xml
--- a/view/point_list.xml       Sun Jan 23 12:54:56 2022 +0100
+++ b/view/point_list.xml       Thu Feb 03 23:13:27 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>
+    <field name="company" expand="1" optional="1"/>
     <field name="name" expand="1"/>
-    <field name="company"/>
-    <field name="storage_location"/>
-    <field name="return_location"/>
-    <field name="customer_location"/>
-    <field name="journal"/>
+    <field name="storage_location" optional="0"/>
+    <field name="return_location" optional="1"/>
+    <field name="customer_location" optional="1"/>
+    <field name="journal" optional="1"/>
 </tree>
diff -r 7967ff7bc913 -r a0280f1d7074 view/sale_list.xml
--- a/view/sale_list.xml        Sun Jan 23 12:54:56 2022 +0100
+++ b/view/sale_list.xml        Thu Feb 03 23:13:27 2022 +0100
@@ -2,9 +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>
-    <field name="point" expand="1"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="point" expand="1" optional="1"/>
     <field name="number" expand="2"/>
-    <field name="date"/>
+    <field name="date" optional="0"/>
     <field name="state"/>
     <button name="post" tree_invisible="1"/>
 </tree>
diff -r 7967ff7bc913 -r a0280f1d7074 view/template_tree.xml
--- a/view/template_tree.xml    Sun Jan 23 12:54:56 2022 +0100
+++ b/view/template_tree.xml    Thu Feb 03 23:13:27 2022 +0100
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <data>
     <xpath expr="/tree/field[@name='list_price']" position="after">
-        <field name="gross_price"/>
+        <field name="gross_price" optional="0"/>
     </xpath>
 </data>

Reply via email to