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

        issue10989
        review374321002
diffstat:

 view/production_list.xml |  7 ++++---
 view/template_list.xml   |  4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 6e47aed309a0 -r 7edf8c62a78f view/production_list.xml
--- a/view/production_list.xml  Sun Jan 23 12:54:56 2022 +0100
+++ b/view/production_list.xml  Thu Feb 03 23:13:26 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="1"/>
     <field name="product" expand="2"/>
     <field name="quantity" symbol="uom"/>
-    <field name="planned_start_date"/>
-    <field name="planned_date"/>
+    <field name="planned_start_date" optional="0"/>
+    <field name="planned_date" optional="0"/>
     <field name="state"/>
 </tree>
diff -r 6e47aed309a0 -r 7edf8c62a78f view/template_list.xml
--- a/view/template_list.xml    Sun Jan 23 12:54:56 2022 +0100
+++ b/view/template_list.xml    Thu Feb 03 23:13:26 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. -->
 <data>
-    <xpath expr="/tree/field[@name='default_uom']" position="after">
-        <field name="producible"/>
+    <xpath expr="/tree/field[@name='type']" position="after">
+        <field name="producible" optional="1"/>
     </xpath>
 </data>

Reply via email to