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

        issue10989
        review374321002
diffstat:

 view/template_tree.xml |  10 +++++-----
 view/uom_tree.xml      |  10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (36 lines):

diff -r 26b63f96f92c -r f4fda3a3f256 view/template_tree.xml
--- a/view/template_tree.xml    Wed Dec 29 12:35:32 2021 +0100
+++ b/view/template_tree.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -4,9 +4,9 @@
 <tree>
     <field name="code" expand="1"/>
     <field name="name" expand="2"/>
-    <field name="list_price"/>
-    <field name="cost_price"/>
-    <field name="type"/>
-    <field name="default_uom"/>
-    <field name="products"/>
+    <field name="list_price" optional="0"/>
+    <field name="cost_price" optional="0"/>
+    <field name="default_uom" optional="0"/>
+    <field name="type" optional="0"/>
+    <field name="products" optional="1"/>
 </tree>
diff -r 26b63f96f92c -r f4fda3a3f256 view/uom_tree.xml
--- a/view/uom_tree.xml Wed Dec 29 12:35:32 2021 +0100
+++ b/view/uom_tree.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" expand="2"/>
-    <field name="symbol"/>
-    <field name="category" expand="1"/>
-    <field name="factor"/>
-    <field name="rate"/>
-    <field name="rounding"/>
+    <field name="symbol" optional="0"/>
+    <field name="category" expand="1" optional="0"/>
+    <field name="factor" optional="1"/>
+    <field name="rate" optional="1"/>
+    <field name="rounding" optional="1"/>
 </tree>

Reply via email to