Add expand on tree view

and unify layout of form view.

issue8644
review262131002
This commit is contained in:
Cédric Krier committed 2019-09-28 23:59:09 +02:00
1 parent f43ce1a738
commit cd60ca78fb
4 files changed
+20 -21

No files matched your search

+10 -11
View File
@@ -19,20 +19,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="currency"/>
<field name="lines" colspan="4"
view_ids="purchase_requisition.purchase_requisition_line_view_list_sequence"/>
<group col="2" colspan="2" id="states" yfill="1">
<label name="state"/>
<field name="state"/>
</group>
<label id="empty" colspan="2"/>
<group col="2" colspan="2" id="amount" yfill="1">
<label name="total_amount" xalign="1.0" xexpand="1"/>
<field name="total_amount" xalign="1.0" xexpand="0"/>
<group col="-1" colspan="2" id="buttons">
<button name="cancel" icon="tryton-cancel"/>
<button name="reject" icon="tryton-close"/>
<button name="draft"/>
<button name="wait" icon="tryton-forward"/>
<button name="approve" icon="tryton-ok"/>
</group>
</group>
</page>
<page string="Other Info" id="other_info">
@@ -40,4 +30,13 @@ this repository contains the full copyright notices and license terms. -->
<field name="company"/>
</page>
</notebook>
<label name="state"/>
<field name="state"/>
<group col="-1" colspan="2" id="buttons">
<button name="cancel" icon="tryton-cancel"/>
<button name="reject" icon="tryton-close"/>
<button name="draft"/>
<button name="wait" icon="tryton-forward"/>
<button name="approve" icon="tryton-ok"/>
</group>
</form>
+3 -3
View File
@@ -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="requisition"/>
<field name="product"/>
<field name="supplier"/>
<field name="requisition" expand="1"/>
<field name="product" expand="1"/>
<field name="supplier" expand="1"/>
<field name="quantity"/>
<field name="unit"/>
<field name="unit_price"/>
@@ -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 sequence="sequence">
<field name="requisition"/>
<field name="product"/>
<field name="supplier"/>
<field name="requisition" expand="1"/>
<field name="product" expand="1"/>
<field name="supplier" expand="1"/>
<field name="quantity"/>
<field name="unit"/>
<field name="unit_price"/>
<field name="amount" expand="1"/>
<field name="amount"/>
</tree>
+3 -3
View File
@@ -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="number"/>
<field name="number" expand="1"/>
<field name="supply_date"/>
<field name="employee"/>
<field name="warehouse"/>
<field name="employee" expand="2"/>
<field name="warehouse" expand="1"/>
<field name="total_amount"/>
<field name="currency"/>
<field name="state"/>