Add optional column on tree view

issue10989
review374321002
This commit is contained in:
Cédric Krier
2022-02-03 23:13:27 +01:00
parent bc7dd92ed4
commit d4fdf0cf0a
4 changed files with 18 additions and 17 deletions
+5 -5
View File
@@ -3,12 +3,12 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="purchase" expand="1"/>
<field name="type"/>
<field name="product" expand="1"/>
<field name="product_supplier" expand="1"/>
<field name="summary" expand="1"/>
<field name="type" optional="1"/>
<field name="product" expand="1" optional="0"/>
<field name="product_supplier" expand="1" optional="1"/>
<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>
+5 -5
View File
@@ -3,12 +3,12 @@
this repository contains the full copyright notices and license terms. -->
<tree sequence="sequence">
<field name="purchase" expand="1"/>
<field name="type"/>
<field name="product" expand="1"/>
<field name="product_supplier" expand="1"/>
<field name="summary" expand="1"/>
<field name="type" optional="1"/>
<field name="product" expand="1" optional="0"/>
<field name="product_supplier" expand="1" optional="1"/>
<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="purchase_date"/>
<field name="reference" expand="1" optional="0"/>
<field name="purchase_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="purchasable"/>
<xpath expr="/tree/field[@name='type']" position="after">
<field name="purchasable" optional="1"/>
</xpath>
</data>