Add expand on tree view

and unify layout of form view.

issue8644
review262131002
This commit is contained in:
Cédric Krier
2019-09-28 23:59:10 +02:00
parent 9542207ad3
commit 055b6d290b
5 changed files with 19 additions and 22 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ this repository contains the full copyright notices and license terms. -->
<tree>
<field name="year"/>
<field name="month" widget="selection"/>
<field name="employee"/>
<field name="employee" expand="1"/>
<field name="number"/>
<field name="converted"/>
<field name="won"/>
+1 -1
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. -->
<tree>
<field name="employee"/>
<field name="employee" expand="1"/>
<field name="number"/>
<field name="converted"/>
<field name="won"/>
+9 -11
View File
@@ -39,17 +39,6 @@ this repository contains the full copyright notices and license terms. -->
<field name="comment" colspan="4"/>
<separator name="lost_reason" colspan="4"/>
<field name="lost_reason" colspan="4"/>
<group col="2" colspan="2" id="state">
<label name="state"/>
<field name="state"/>
</group>
<group col="-1" colspan="2" id="buttons">
<button name="cancel" icon="tryton-cancel"/>
<button name="lost" icon="tryton-cancel"/>
<button name="lead" icon="tryton-back"/>
<button name="opportunity" icon="tryton-forward"/>
<button name="convert" icon="tryton-forward"/>
</group>
</page>
<page name="lines">
<field name="lines"/>
@@ -58,4 +47,13 @@ this repository contains the full copyright notices and license terms. -->
<field name="sales" colspan="4"/>
</page>
</notebook>
<label name="state"/>
<field name="state"/>
<group col="-1" colspan="2" id="buttons">
<button name="cancel" icon="tryton-cancel"/>
<button name="lost" icon="tryton-cancel"/>
<button name="lead" icon="tryton-back"/>
<button name="opportunity" icon="tryton-forward"/>
<button name="convert" icon="tryton-forward"/>
</group>
</form>
+3 -4
View File
@@ -2,9 +2,8 @@
<!-- 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">
<field name="opportunity"/>
<field name="product"/>
<field name="opportunity" expand="1"/>
<field name="product" expand="1"/>
<field name="quantity"/>
<field name="unit" expand="1"/>
<field name="sequence" tree_invisible="1"/>
<field name="unit"/>
</tree>
+5 -5
View File
@@ -2,13 +2,13 @@
<!-- 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="start_date"/>
<field name="end_date"/>
<field name="employee"/>
<field name="description"/>
<field name="party"/>
<field name="employee" expand="1"/>
<field name="description" expand="1"/>
<field name="party" expand="1"/>
<field name="amount"/>
<field name="currency"/>
<field name="state"/>