changeset ecd3fd342e0c in modules/sale_supply_drop_shipment:default
details:
https://hg.tryton.org/modules/sale_supply_drop_shipment?cmd=changeset&node=ecd3fd342e0c
description:
Add optional column on tree view
issue10989
review374321002
diffstat:
view/purchase_request_tree.xml | 4 ++--
view/shipment_drop_tree.xml | 11 ++++++-----
2 files changed, 8 insertions(+), 7 deletions(-)
diffs (36 lines):
diff -r 6e65d516c065 -r ecd3fd342e0c view/purchase_request_tree.xml
--- a/view/purchase_request_tree.xml Sun Jan 30 01:37:46 2022 +0100
+++ b/view/purchase_request_tree.xml Thu Feb 03 23:13:27 2022 +0100
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='party']" position="after">
- <field name="customer"/>
- <field name="delivery_address"/>
+ <field name="customer" optional="0"/>
+ <field name="delivery_address" optional="1"/>
</xpath>
</data>
diff -r 6e65d516c065 -r ecd3fd342e0c view/shipment_drop_tree.xml
--- a/view/shipment_drop_tree.xml Sun Jan 30 01:37:46 2022 +0100
+++ b/view/shipment_drop_tree.xml Thu Feb 03 23:13:27 2022 +0100
@@ -2,13 +2,14 @@
<!-- 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="planned_date"/>
- <field name="effective_date"/>
+ <field name="reference" expand="1" optional="0"/>
+ <field name="planned_date" optional="0"/>
+ <field name="effective_date" optional="0"/>
<field name="supplier" expand="2"/>
- <field name="contact_address"/>
+ <field name="contact_address" optional="1"/>
<field name="customer" expand="2"/>
- <field name="delivery_address"/>
+ <field name="delivery_address" optional="1"/>
<field name="state"/>
</tree>