changeset 76c74774f819 in modules/sale_subscription:default
details: 
https://hg.tryton.org/modules/sale_subscription?cmd=changeset;node=76c74774f819
description:
        Add expand on tree view

        and unify layout of form view.

        issue8644
        review262131002
diffstat:

 view/service_list.xml                       |   6 +++---
 view/subscription_form.xml                  |  18 ++++++++----------
 view/subscription_line_consumption_list.xml |   4 ++--
 view/subscription_line_list.xml             |   6 +++---
 view/subscription_line_list_sequence.xml    |   6 +++---
 view/subscription_list.xml                  |   8 ++++----
 6 files changed, 23 insertions(+), 25 deletions(-)

diffs (110 lines):

diff -r dd8c134f116e -r 76c74774f819 view/service_list.xml
--- a/view/service_list.xml     Fri Sep 20 11:47:15 2019 +0200
+++ b/view/service_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="product"/>
-    <field name="consumption_recurrence"/>
-    <field name="consumption_delay"/>
+    <field name="product" expand="2"/>
+    <field name="consumption_recurrence" expand="1"/>
+    <field name="consumption_delay" expand="1"/>
 </tree>
diff -r dd8c134f116e -r 76c74774f819 view/subscription_form.xml
--- a/view/subscription_form.xml        Fri Sep 20 11:47:15 2019 +0200
+++ b/view/subscription_form.xml        Sat Sep 28 23:59:10 2019 +0200
@@ -28,20 +28,18 @@
             <field name="currency"/>
             <field name="lines" colspan="4"
                 
view_ids="sale_subscription.subscription_line_view_list_sequence"/>
-            <group col="2" colspan="2" id="states" yfill="1">
-                <label name="state"/>
-                <field name="state"/>
-            </group>
-            <group col="4" colspan="2" id="buttons" yfill="1">
-                <button name="cancel"/>
-                <button name="draft"/>
-                <button name="quote"/>
-                <button name="run"/>
-            </group>
         </page>
         <page string="Other Info" id="other">
             <label name="company"/>
             <field name="company"/>
         </page>
     </notebook>
+    <label name="state"/>
+    <field name="state" colspan="2"/>
+    <group col="-1" colspan="3" id="buttons" yfill="1">
+        <button name="cancel"/>
+        <button name="draft"/>
+        <button name="quote"/>
+        <button name="run"/>
+    </group>
 </form>
diff -r dd8c134f116e -r 76c74774f819 view/subscription_line_consumption_list.xml
--- a/view/subscription_line_consumption_list.xml       Fri Sep 20 11:47:15 
2019 +0200
+++ b/view/subscription_line_consumption_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="line"/>
+    <field name="line" expand="1"/>
     <field name="date"/>
-    <field name="invoice_line"/>
+    <field name="invoice_line" expand="1"/>
 </tree>
diff -r dd8c134f116e -r 76c74774f819 view/subscription_line_list.xml
--- a/view/subscription_line_list.xml   Fri Sep 20 11:47:15 2019 +0200
+++ b/view/subscription_line_list.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="subscription"/>
-    <field name="service"/>
-    <field name="description"/>
+    <field name="subscription" expand="1"/>
+    <field name="service" expand="1"/>
+    <field name="description" expand="1"/>
     <field name="consumption_recurrence"/>
     <field name="consumption_delay"/>
     <field name="quantity"/>
diff -r dd8c134f116e -r 76c74774f819 view/subscription_line_list_sequence.xml
--- a/view/subscription_line_list_sequence.xml  Fri Sep 20 11:47:15 2019 +0200
+++ b/view/subscription_line_list_sequence.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 sequence="sequence">
-    <field name="subscription"/>
-    <field name="service"/>
-    <field name="description"/>
+    <field name="subscription" expand="1"/>
+    <field name="service" expand="1"/>
+    <field name="description" expand="1"/>
     <field name="consumption_recurrence"/>
     <field name="consumption_delay"/>
     <field name="quantity"/>
diff -r dd8c134f116e -r 76c74774f819 view/subscription_list.xml
--- a/view/subscription_list.xml        Fri Sep 20 11:47:15 2019 +0200
+++ b/view/subscription_list.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="start_date"/>
     <field name="end_date"/>
-    <field name="party"/>
+    <field name="party" expand="2"/>
     <field name="state"/>
-    <field name="description"/>
+    <field name="description" expand="1"/>
 </tree>

Reply via email to