Add optional column on tree view

issue10989
review374321002
This commit is contained in:
Cédric Krier committed 2022-02-03 23:13:27 +01:00
1 parent e73d488ebb
commit fce3c67dde
5 files changed
+21 -20

No files matched your search

+5 -5
View File
@@ -2,11 +2,11 @@
<!-- 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="0"/>
<field name="name" expand="1"/>
<field name="sale_price_uom"/>
<field name="list_price_uom"/>
<field name="cost_price_uom"/>
<field name="quantity" symbol="default_uom"/>
<field name="forecast_quantity" symbol="default_uom"/>
<field name="list_price_uom" optional="1"/>
<field name="cost_price_uom" optional="1"/>
<field name="quantity" symbol="default_uom" optional="0"/>
<field name="forecast_quantity" symbol="default_uom" optional="1"/>
</tree>
+4 -4
View File
@@ -3,11 +3,11 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="sale" expand="1"/>
<field name="type"/>
<field name="product" expand="1"/>
<field name="summary" expand="1"/>
<field name="type" optional="1"/>
<field name="product" expand="1" optional="0"/>
<field name="summary" expand="1" optional="1"/>
<field name="quantity" symbol="unit"/>
<field name="unit_price"/>
<field name="taxes"/>
<field name="taxes" optional="0"/>
<field name="amount"/>
</tree>
+4 -4
View File
@@ -3,11 +3,11 @@
this repository contains the full copyright notices and license terms. -->
<tree sequence="sequence">
<field name="sale" expand="1"/>
<field name="type"/>
<field name="product" expand="1"/>
<field name="summary" expand="1"/>
<field name="type" optional="1"/>
<field name="product" expand="1" optional="0"/>
<field name="summary" expand="1" optional="1"/>
<field name="quantity" symbol="unit"/>
<field name="unit_price"/>
<field name="taxes"/>
<field name="taxes" optional="0"/>
<field name="amount"/>
</tree>
+6 -5
View File
@@ -2,14 +2,15 @@
<!-- 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="sale_date"/>
<field name="reference" expand="1" optional="1"/>
<field name="sale_date" optional="0"/>
<field name="party" expand="2"/>
<field name="warehouse"/>
<field name="untaxed_amount"/>
<field name="warehouse" optional="1"/>
<field name="untaxed_amount" optional="0"/>
<field name="description" expand="1" optional="1"/>
<field name="state"/>
<field name="invoice_state"/>
<field name="shipment_state"/>
<field name="description" expand="1"/>
</tree>
+2 -2
View File
@@ -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="salable"/>
<xpath expr="/tree/field[@name='type']" position="after">
<field name="salable" optional="1"/>
</xpath>
</data>