changeset 8522cb117298 in modules/stock_forecast:default
details:
https://hg.tryton.org/modules/stock_forecast?cmd=changeset;node=8522cb117298
description:
Add expand on tree view
and unify layout of form view.
issue8644
review262131002
diffstat:
view/forecast_form.xml | 16 +++++++---------
view/forecast_line_tree.xml | 5 ++---
view/forecast_tree.xml | 4 ++--
3 files changed, 11 insertions(+), 14 deletions(-)
diffs (64 lines):
diff -r d7303f23b9b8 -r 8522cb117298 view/forecast_form.xml
--- a/view/forecast_form.xml Fri Aug 09 16:40:13 2019 +0200
+++ b/view/forecast_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="warehouse"/>
<field name="warehouse"/>
<label name="destination"/>
@@ -16,13 +16,11 @@
colspan="2"
help="Add forecast line based on past data."/>
<field name="lines" colspan="4"/>
- <group col="4" colspan="4" id="state_buttons">
- <label name="state"/>
- <field name="state"/>
- <group colspan="2" col="-1" id="buttons">
- <button name="draft" icon="tryton-clear"/>
- <button name="cancel" icon="tryton-cancel"/>
- <button name="confirm" icon="tryton-ok"/>
- </group>
+ <label name="state"/>
+ <field name="state"/>
+ <group colspan="2" col="-1" id="buttons">
+ <button name="draft" icon="tryton-clear"/>
+ <button name="cancel" icon="tryton-cancel"/>
+ <button name="confirm" icon="tryton-ok"/>
</group>
</form>
diff -r d7303f23b9b8 -r 8522cb117298 view/forecast_line_tree.xml
--- a/view/forecast_line_tree.xml Fri Aug 09 16:40:13 2019 +0200
+++ b/view/forecast_line_tree.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,11 +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 editable="bottom">
- <field name="product"/>
+ <field name="forecast" expand="2"/>
+ <field name="product" expand="1"/>
<field name="quantity"/>
<field name="minimal_quantity"/>
<field name="uom"/>
<field name="quantity_executed"/>
- <field name="forecast"/>
- <field name="unit_digits" tree_invisible="1"/>
</tree>
diff -r d7303f23b9b8 -r 8522cb117298 view/forecast_tree.xml
--- a/view/forecast_tree.xml Fri Aug 09 16:40:13 2019 +0200
+++ b/view/forecast_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="warehouse"/>
+ <field name="warehouse" expand="2"/>
<field name="state"/>
<field name="from_date"/>
<field name="to_date"/>
- <field name="company"/>
+ <field name="company" expand="1"/>
</tree>