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

        issue10989
        review374321002
diffstat:

 view/address_tree.xml                    |   2 +-
 view/address_tree_sequence.xml           |   2 +-
 view/contact_mechanism_tree.xml          |   2 +-
 view/contact_mechanism_tree_sequence.xml |   2 +-
 view/invoice_line_tree.xml               |  10 +++++-----
 view/invoice_line_tree_sequence.xml      |  10 +++++-----
 view/invoice_tree.xml                    |  17 +++++++++--------
 view/move_line_list.xml                  |   2 +-
 view/payment_method_tree.xml             |   2 +-
 9 files changed, 25 insertions(+), 24 deletions(-)

diffs (139 lines):

diff -r 0621a612c34f -r 472b21a21870 view/address_tree.xml
--- a/view/address_tree.xml     Thu Feb 03 22:29:08 2022 +0100
+++ b/view/address_tree.xml     Thu Feb 03 23:13:26 2022 +0100
@@ -4,6 +4,6 @@
 <data>
     <xpath
         expr="/tree/field[@name='subdivision']" position="after">
-        <field name="invoice"/>
+        <field name="invoice" optional="1"/>
     </xpath>
 </data>
diff -r 0621a612c34f -r 472b21a21870 view/address_tree_sequence.xml
--- a/view/address_tree_sequence.xml    Thu Feb 03 22:29:08 2022 +0100
+++ b/view/address_tree_sequence.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -4,6 +4,6 @@
 <data>
     <xpath
         expr="/tree/field[@name='subdivision']" position="after">
-        <field name="invoice"/>
+        <field name="invoice" optional="1"/>
     </xpath>
 </data>
diff -r 0621a612c34f -r 472b21a21870 view/contact_mechanism_tree.xml
--- a/view/contact_mechanism_tree.xml   Thu Feb 03 22:29:08 2022 +0100
+++ b/view/contact_mechanism_tree.xml   Thu Feb 03 23:13:26 2022 +0100
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <data>
     <xpath expr="/tree/field[@name='party']" position="after">
-        <field name="invoice"/>
+        <field name="invoice" optional="1"/>
     </xpath>
 </data>
diff -r 0621a612c34f -r 472b21a21870 view/contact_mechanism_tree_sequence.xml
--- a/view/contact_mechanism_tree_sequence.xml  Thu Feb 03 22:29:08 2022 +0100
+++ b/view/contact_mechanism_tree_sequence.xml  Thu Feb 03 23:13:26 2022 +0100
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <data>
     <xpath expr="/tree/field[@name='party']" position="after">
-        <field name="invoice"/>
+        <field name="invoice" optional="1"/>
     </xpath>
 </data>
diff -r 0621a612c34f -r 472b21a21870 view/invoice_line_tree.xml
--- a/view/invoice_line_tree.xml        Thu Feb 03 22:29:08 2022 +0100
+++ b/view/invoice_line_tree.xml        Thu Feb 03 23:13:26 2022 +0100
@@ -3,12 +3,12 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="invoice" expand="1"/>
-    <field name="type"/>
-    <field name="product" expand="1"/>
-    <field name="summary" expand="1"/>
-    <field name="account" expand="1"/>
+    <field name="type" optional="1"/>
+    <field name="product" expand="1" optional="0"/>
+    <field name="summary" expand="1" optional="1"/>
+    <field name="account" expand="1" optional="0"/>
     <field name="quantity" symbol="unit"/>
     <field name="unit_price"/>
-    <field name="taxes"/>
+    <field name="taxes" optional="0"/>
     <field name="amount"/>
 </tree>
diff -r 0621a612c34f -r 472b21a21870 view/invoice_line_tree_sequence.xml
--- a/view/invoice_line_tree_sequence.xml       Thu Feb 03 22:29:08 2022 +0100
+++ b/view/invoice_line_tree_sequence.xml       Thu Feb 03 23:13:26 2022 +0100
@@ -3,12 +3,12 @@
 this repository contains the full copyright notices and license terms. -->
 <tree sequence="sequence">
     <field name="invoice" expand="1"/>
-    <field name="type"/>
-    <field name="product" expand="1"/>
-    <field name="summary" expand="1"/>
-    <field name="account" expand="1"/>
+    <field name="type" optional="1"/>
+    <field name="product" expand="1" optional="0"/>
+    <field name="summary" expand="1" optional="1"/>
+    <field name="account" expand="1" optional="0"/>
     <field name="quantity" symbol="unit"/>
     <field name="unit_price"/>
-    <field name="taxes"/>
+    <field name="taxes" optional="0"/>
     <field name="amount"/>
 </tree>
diff -r 0621a612c34f -r 472b21a21870 view/invoice_tree.xml
--- a/view/invoice_tree.xml     Thu Feb 03 22:29:08 2022 +0100
+++ b/view/invoice_tree.xml     Thu Feb 03 23:13:26 2022 +0100
@@ -2,17 +2,18 @@
 <!-- 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" optional="1"/>
     <field name="type"/>
     <field name="number"/>
     <field name="reference"/>
-    <field name="invoice_date"/>
-    <field name="party" expand="2"/>
-    <field name="untaxed_amount"/>
-    <field name="tax_amount"/>
-    <field name="total_amount"/>
-    <field name="state"/>
-    <field name="amount_to_pay_today"/>
-    <field name="description" expand="1"/>
+    <field name="invoice_date" optional="0"/>
+    <field name="party" expand="2" optional="0"/>
+    <field name="untaxed_amount" optional="0"/>
+    <field name="tax_amount" optional="0"/>
+    <field name="total_amount" optional="0"/>
+    <field name="state" optional="0"/>
+    <field name="amount_to_pay_today" optional="0"/>
+    <field name="description" expand="1" optional="1"/>
     <button name="cancel" tree_invisible="1"/>
     <button name="draft" tree_invisible="1"/>
     <button name="validate_invoice" tree_invisible="1"/>
diff -r 0621a612c34f -r 472b21a21870 view/move_line_list.xml
--- a/view/move_line_list.xml   Thu Feb 03 22:29:08 2022 +0100
+++ b/view/move_line_list.xml   Thu Feb 03 23:13:26 2022 +0100
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <data>
     <xpath expr="//field[@name='reconciliation']" position="after">
-        <field name="invoice_payment"/>
+        <field name="invoice_payment" optional="1"/>
     </xpath>
 </data>
diff -r 0621a612c34f -r 472b21a21870 view/payment_method_tree.xml
--- a/view/payment_method_tree.xml      Thu Feb 03 22:29:08 2022 +0100
+++ b/view/payment_method_tree.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. -->
 <tree>
+    <field name="company" expand="1" optional="1"/>
     <field name="name" expand="2"/>
     <field name="journal" expand="1"/>
-    <field name="company" expand="1"/>
 </tree>

Reply via email to