changeset 6e522da3964b in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=6e522da3964b
description:
Add expand on tree view
and unify layout of form view.
issue8644
review262131002
diffstat:
view/inventory_form.xml | 18 ++++++++----------
view/inventory_line_tree.xml | 5 ++---
view/inventory_tree.xml | 6 +++---
view/location_lead_time_list.xml | 4 ++--
view/location_list.xml | 2 +-
view/location_tree.xml | 5 +----
view/move_list_shipment_in.xml | 9 ++++-----
view/move_tree.xml | 10 ++++------
view/move_tree_simple.xml | 5 ++---
view/period_list.xml | 2 +-
view/shipment_in_form.xml | 16 +++++++---------
view/shipment_in_return_tree.xml | 2 +-
view/shipment_in_tree.xml | 6 +++---
view/shipment_internal_form.xml | 2 +-
view/shipment_internal_tree.xml | 8 ++++----
view/shipment_out_form.xml | 24 ++++++++++--------------
view/shipment_out_return_form.xml | 16 +++++++---------
view/shipment_out_return_tree.xml | 6 +++---
view/shipment_out_tree.xml | 6 +++---
19 files changed, 67 insertions(+), 85 deletions(-)
diffs (368 lines):
diff -r b5791fd500b1 -r 6e522da3964b view/inventory_form.xml
--- a/view/inventory_form.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/inventory_form.xml Sat Sep 28 23:59:10 2019 +0200
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
-<form col="4">
+<form>
<label name="location"/>
<field name="location"/>
<label name="number"/>
@@ -15,14 +15,12 @@
<label name="empty_quantity"/>
<field name="empty_quantity"/>
<field name="lines" colspan="4"/>
- <group col="4" colspan="4" id="group_buttons">
- <label name="state"/>
- <field name="state"/>
- <group colspan="2" col="-1" id="buttons">
- <button name="cancel" icon="tryton-cancel"/>
- <button name="complete_lines"/>
- <button name="count"/>
- <button name="confirm" icon="tryton-ok"/>
- </group>
+ <label name="state"/>
+ <field name="state"/>
+ <group colspan="2" col="-1" id="buttons">
+ <button name="cancel" icon="tryton-cancel"/>
+ <button name="complete_lines"/>
+ <button name="count"/>
+ <button name="confirm" icon="tryton-ok"/>
</group>
</form>
diff -r b5791fd500b1 -r 6e522da3964b view/inventory_line_tree.xml
--- a/view/inventory_line_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/inventory_line_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,10 +2,9 @@
<!-- 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 editable="bottom">
- <field name="inventory"/>
- <field name="product"/>
+ <field name="inventory" expand="1"/>
+ <field name="product" expand="1"/>
<field name="expected_quantity"/>
<field name="quantity"/>
<field name="uom"/>
- <field name="unit_digits" tree_invisible="1"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/inventory_tree.xml
--- a/view/inventory_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/inventory_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,9 +2,9 @@
<!-- 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="number"/>
- <field name="location"/>
+ <field name="number" expand="1"/>
+ <field name="location" expand="2"/>
<field name="date"/>
<field name="state"/>
- <field name="company"/>
+ <field name="company" expand="1"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/location_lead_time_list.xml
--- a/view/location_lead_time_list.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/location_lead_time_list.xml Sat Sep 28 23:59:10 2019 +0200
@@ -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 sequence="sequence" editable="top">
- <field name="warehouse_from"/>
- <field name="warehouse_to"/>
+ <field name="warehouse_from" expand="1"/>
+ <field name="warehouse_to" expand="1"/>
<field name="lead_time"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/location_list.xml
--- a/view/location_list.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/location_list.xml Sat Sep 28 23:59:10 2019 +0200
@@ -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="name"/>
<field name="code"/>
+ <field name="name" expand="1"/>
<field name="type"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/location_tree.xml
--- a/view/location_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/location_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,10 +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 keyword_open="1">
- <field name="name"/>
+ <field name="name" expand="1"/>
<field name="code"/>
<field name="type"/>
- <field name="active" tree_invisible="1"/>
- <field name="parent" tree_invisible="1"/>
- <field name="childs" tree_invisible="1"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/move_list_shipment_in.xml
--- a/view/move_list_shipment_in.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/move_list_shipment_in.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,10 +2,10 @@
<!-- 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="shipment"/>
- <field name="product"/>
- <field name="from_location"/>
- <field name="to_location"/>
+ <field name="shipment" expand="2"/>
+ <field name="product" expand="2"/>
+ <field name="from_location" expand="1"/>
+ <field name="to_location" expand="1"/>
<field name="quantity"/>
<field name="uom"/>
<field name="planned_date"/>
@@ -14,5 +14,4 @@
<button name="cancel" string="Cancel"/>
<button name="draft" string="Reset to Draft"/>
<button name="do" string="Do"/>
- <field name="assignation_required" tree_invisible="1"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/move_tree.xml
--- a/view/move_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/move_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,10 +2,10 @@
<!-- 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="origin"/>
- <field name="product"/>
- <field name="from_location"/>
- <field name="to_location"/>
+ <field name="origin" expand="1"/>
+ <field name="product" expand="1"/>
+ <field name="from_location" expand="1"/>
+ <field name="to_location" expand="1"/>
<field name="quantity"/>
<field name="uom"/>
<field name="planned_date"/>
@@ -14,6 +14,4 @@
<button name="cancel"/>
<button name="draft"/>
<button name="do"/>
- <field name="unit_digits" tree_invisible="1"/>
- <field name="assignation_required" tree_invisible="1"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/move_tree_simple.xml
--- a/view/move_tree_simple.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/move_tree_simple.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,8 +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="product"/>
+ <field name="product" expand="1"/>
<field name="quantity"/>
- <field name="uom" expand="1"/>
- <field name="unit_digits" tree_invisible="1"/>
+ <field name="uom"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/period_list.xml
--- a/view/period_list.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/period_list.xml Sat Sep 28 23:59:10 2019 +0200
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="date"/>
- <field name="company"/>
+ <field name="company" expand="1"/>
<field name="state"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_in_form.xml
--- a/view/shipment_in_form.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_in_form.xml Sat Sep 28 23:59:10 2019 +0200
@@ -33,14 +33,12 @@
<field name="done_by"/>
</page>
</notebook>
- <group col="4" colspan="6" id="state_buttons">
- <label name="state"/>
- <field name="state"/>
- <group col="-1" colspan="2" id="buttons">
- <button name="cancel" icon="tryton-cancel"/>
- <button name="receive" icon="tryton-forward"/>
- <button name="done" icon="tryton-ok"/>
- <button name="draft" icon="tryton-undo"/>
- </group>
+ <label name="state"/>
+ <field name="state"/>
+ <group col="-1" colspan="2" id="buttons">
+ <button name="cancel" icon="tryton-cancel"/>
+ <button name="receive" icon="tryton-forward"/>
+ <button name="done" icon="tryton-ok"/>
+ <button name="draft" icon="tryton-undo"/>
</group>
</form>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_in_return_tree.xml
--- a/view/shipment_in_return_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_in_return_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -6,7 +6,7 @@
<field name="reference"/>
<field name="planned_date"/>
<field name="effective_date"/>
- <field name="supplier"/>
+ <field name="supplier" expand="1"/>
<field name="delivery_address"/>
<field name="state"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_in_tree.xml
--- a/view/shipment_in_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_in_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -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="number"/>
- <field name="reference"/>
+ <field name="number" expand="1"/>
+ <field name="reference" expand="1"/>
<field name="planned_date"/>
<field name="effective_date"/>
- <field name="supplier"/>
+ <field name="supplier" expand="2"/>
<field name="contact_address"/>
<field name="state"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_internal_form.xml
--- a/view/shipment_internal_form.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_internal_form.xml Sat Sep 28 23:59:10 2019 +0200
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
-<form col="4" cursor="from_location">
+<form cursor="from_location">
<label name="reference"/>
<field name="reference"/>
<label name="number"/>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_internal_tree.xml
--- a/view/shipment_internal_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_internal_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,12 +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="number"/>
- <field name="reference"/>
+ <field name="number" expand="1"/>
+ <field name="reference" expand="1"/>
<field name="planned_start_date"/>
<field name="planned_date"/>
<field name="effective_date"/>
- <field name="from_location"/>
- <field name="to_location"/>
+ <field name="from_location" expand="1"/>
+ <field name="to_location" expand="1"/>
<field name="state"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_out_form.xml
--- a/view/shipment_out_form.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_out_form.xml Sat Sep 28 23:59:10 2019 +0200
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
-<form col="4" cursor="customer">
+<form cursor="customer">
<label name="reference"/>
<field name="reference"/>
<label name="number"/>
@@ -34,18 +34,14 @@
<field name="done_by"/>
</page>
</notebook>
- <group col="4" colspan="4" id="state_buttons">
- <label name="state"/>
- <field name="state"/>
- <group col="-1" colspan="2" id="buttons">
- <button name="cancel" icon="tryton-cancel"/>
- <button name="draft"/>
- <button name="wait"/>
- <button name="assign_wizard" icon="tryton-forward"/>
- <button name="pack" icon="tryton-forward"/>
- <button name="done" icon="tryton-ok"/>
- </group>
+ <label name="state"/>
+ <field name="state"/>
+ <group col="-1" colspan="2" id="buttons">
+ <button name="cancel" icon="tryton-cancel"/>
+ <button name="draft"/>
+ <button name="wait"/>
+ <button name="assign_wizard" icon="tryton-forward"/>
+ <button name="pack" icon="tryton-forward"/>
+ <button name="done" icon="tryton-ok"/>
</group>
- <field name="warehouse_storage" invisible="1" colspan="4"/>
- <field name="warehouse_output" invisible="1" colspan="4"/>
</form>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_out_return_form.xml
--- a/view/shipment_out_return_form.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_out_return_form.xml Sat Sep 28 23:59:10 2019 +0200
@@ -32,14 +32,12 @@
<field name="done_by"/>
</page>
</notebook>
- <group col="4" colspan="6" id="state_buttons">
- <label name="state"/>
- <field name="state"/>
- <group col="-1" colspan="2" id="buttons">
- <button name="cancel" icon="tryton-cancel"/>
- <button name="draft" icon="tryton-clear"/>
- <button name="receive" icon="tryton-forward"/>
- <button name="done" icon="tryton-ok"/>
- </group>
+ <label name="state"/>
+ <field name="state"/>
+ <group col="-1" colspan="2" id="buttons">
+ <button name="cancel" icon="tryton-cancel"/>
+ <button name="draft" icon="tryton-clear"/>
+ <button name="receive" icon="tryton-forward"/>
+ <button name="done" icon="tryton-ok"/>
</group>
</form>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_out_return_tree.xml
--- a/view/shipment_out_return_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_out_return_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -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="number"/>
- <field name="reference"/>
+ <field name="number" expand="1"/>
+ <field name="reference" expand="1"/>
<field name="state"/>
<field name="planned_date"/>
<field name="effective_date"/>
- <field name="customer"/>
+ <field name="customer" expand="2"/>
<field name="delivery_address"/>
</tree>
diff -r b5791fd500b1 -r 6e522da3964b view/shipment_out_tree.xml
--- a/view/shipment_out_tree.xml Fri Sep 20 11:47:15 2019 +0200
+++ b/view/shipment_out_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -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="number"/>
- <field name="reference"/>
+ <field name="number" expand="1"/>
+ <field name="reference" expand="1"/>
<field name="planned_date"/>
<field name="effective_date"/>
- <field name="customer"/>
+ <field name="customer" expand="2"/>
<field name="delivery_address"/>
<field name="state"/>
</tree>