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

        issue10989
        review374321002
diffstat:

 view/inventory_tree.xml               |   2 +-
 view/location_list.xml                |   4 ++--
 view/location_tree.xml                |   4 ++--
 view/move_tree.xml                    |   7 ++++---
 view/party_address_tree.xml           |   2 +-
 view/party_contact_mechanism_tree.xml |   2 +-
 view/period_list.xml                  |   2 +-
 view/shipment_in_return_tree.xml      |  13 +++++++------
 view/shipment_in_tree.xml             |  11 ++++++-----
 view/shipment_internal_tree.xml       |   9 +++++----
 view/shipment_out_return_tree.xml     |  11 ++++++-----
 view/shipment_out_tree.xml            |  11 ++++++-----
 12 files changed, 42 insertions(+), 36 deletions(-)

diffs (199 lines):

diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/inventory_tree.xml
--- a/view/inventory_tree.xml   Thu Feb 03 23:05:47 2022 +0100
+++ b/view/inventory_tree.xml   Thu Feb 03 23:13:27 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="number" expand="1"/>
     <field name="location" expand="2"/>
     <field name="date"/>
     <field name="state"/>
-    <field name="company" expand="1"/>
 </tree>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/location_list.xml
--- a/view/location_list.xml    Thu Feb 03 23:05:47 2022 +0100
+++ b/view/location_list.xml    Thu Feb 03 23:13:27 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="code"/>
+    <field name="code" optional="1"/>
     <field name="name" expand="1"/>
-    <field name="type"/>
+    <field name="type" optional="0"/>
 </tree>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/location_tree.xml
--- a/view/location_tree.xml    Thu Feb 03 23:05:47 2022 +0100
+++ b/view/location_tree.xml    Thu Feb 03 23:13:27 2022 +0100
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <tree keyword_open="1">
     <field name="name" expand="1"/>
-    <field name="code"/>
-    <field name="type"/>
+    <field name="code" optional="1"/>
+    <field name="type" optional="1"/>
 </tree>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/move_tree.xml
--- a/view/move_tree.xml        Thu Feb 03 23:05:47 2022 +0100
+++ b/view/move_tree.xml        Thu Feb 03 23:13:27 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="origin" expand="1"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="origin" expand="1" optional="1"/>
     <field name="product" expand="1"/>
     <field name="from_location" expand="1"/>
     <field name="to_location" expand="1"/>
     <field name="quantity" symbol="uom"/>
-    <field name="planned_date"/>
-    <field name="effective_date"/>
+    <field name="planned_date" optional="0"/>
+    <field name="effective_date" optional="0"/>
     <field name="state"/>
     <button name="cancel"/>
     <button name="draft"/>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/party_address_tree.xml
--- a/view/party_address_tree.xml       Thu Feb 03 23:05:47 2022 +0100
+++ b/view/party_address_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='subdivision']" position="after">
-        <field name="delivery"/>
+        <field name="delivery" optional="1"/>
     </xpath>
 </data>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/party_contact_mechanism_tree.xml
--- a/view/party_contact_mechanism_tree.xml     Thu Feb 03 23:05:47 2022 +0100
+++ b/view/party_contact_mechanism_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="//field[@name='party']" position="after">
-        <field name="delivery"/>
+        <field name="delivery" optional="1"/>
     </xpath>
 </data>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/period_list.xml
--- a/view/period_list.xml      Thu Feb 03 23:05:47 2022 +0100
+++ b/view/period_list.xml      Thu Feb 03 23:13:27 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="date"/>
-    <field name="company" expand="1"/>
     <field name="state"/>
 </tree>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/shipment_in_return_tree.xml
--- a/view/shipment_in_return_tree.xml  Thu Feb 03 23:05:47 2022 +0100
+++ b/view/shipment_in_return_tree.xml  Thu Feb 03 23:13:27 2022 +0100
@@ -2,11 +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="number"/>
-    <field name="reference"/>
-    <field name="planned_date"/>
-    <field name="effective_date"/>
-    <field name="supplier" expand="1"/>
-    <field name="delivery_address"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="number" expand="1"/>
+    <field name="reference" expand="1" optional="0"/>
+    <field name="planned_date" optional="0"/>
+    <field name="effective_date" optional="0"/>
+    <field name="supplier" expand="1" optional="0"/>
+    <field name="delivery_address" optional="0"/>
     <field name="state"/>
 </tree>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/shipment_in_tree.xml
--- a/view/shipment_in_tree.xml Thu Feb 03 23:05:47 2022 +0100
+++ b/view/shipment_in_tree.xml Thu Feb 03 23:13:27 2022 +0100
@@ -2,11 +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="number" expand="1"/>
-    <field name="reference" expand="1"/>
-    <field name="planned_date"/>
-    <field name="effective_date"/>
-    <field name="supplier" expand="2"/>
-    <field name="contact_address"/>
+    <field name="reference" expand="1" optional="0"/>
+    <field name="planned_date" optional="0"/>
+    <field name="effective_date" optional="0"/>
+    <field name="supplier" expand="2" optional="0"/>
+    <field name="contact_address" optional="1"/>
     <field name="state"/>
 </tree>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/shipment_internal_tree.xml
--- a/view/shipment_internal_tree.xml   Thu Feb 03 23:05:47 2022 +0100
+++ b/view/shipment_internal_tree.xml   Thu Feb 03 23:13:27 2022 +0100
@@ -2,11 +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="number" expand="1"/>
-    <field name="reference" expand="1"/>
-    <field name="planned_start_date"/>
-    <field name="planned_date"/>
-    <field name="effective_date"/>
+    <field name="reference" expand="1" optional="0"/>
+    <field name="planned_start_date" optional="0"/>
+    <field name="planned_date" optional="0"/>
+    <field name="effective_date" optional="0"/>
     <field name="from_location" expand="1"/>
     <field name="to_location" expand="1"/>
     <field name="state"/>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/shipment_out_return_tree.xml
--- a/view/shipment_out_return_tree.xml Thu Feb 03 23:05:47 2022 +0100
+++ b/view/shipment_out_return_tree.xml Thu Feb 03 23:13:27 2022 +0100
@@ -2,11 +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="number" expand="1"/>
-    <field name="reference" expand="1"/>
+    <field name="reference" expand="1" optional="0"/>
+    <field name="planned_date" optional="0"/>
+    <field name="effective_date" optional="0"/>
+    <field name="customer" expand="2" optional="0"/>
+    <field name="delivery_address" optional="1"/>
     <field name="state"/>
-    <field name="planned_date"/>
-    <field name="effective_date"/>
-    <field name="customer" expand="2"/>
-    <field name="delivery_address"/>
 </tree>
diff -r b9cc5dff7bf1 -r c4bfa3a551c3 view/shipment_out_tree.xml
--- a/view/shipment_out_tree.xml        Thu Feb 03 23:05:47 2022 +0100
+++ b/view/shipment_out_tree.xml        Thu Feb 03 23:13:27 2022 +0100
@@ -2,11 +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="number" expand="1"/>
-    <field name="reference" expand="1"/>
-    <field name="planned_date"/>
-    <field name="effective_date"/>
-    <field name="customer" expand="2"/>
-    <field name="delivery_address"/>
+    <field name="reference" expand="1" optional="0"/>
+    <field name="planned_date" optional="0"/>
+    <field name="effective_date" optional="0"/>
+    <field name="customer" expand="2" optional="0"/>
+    <field name="delivery_address" optional="0"/>
     <field name="state"/>
 </tree>

Reply via email to