Reviewers: ,


Please review this at http://codereview.tryton.org/227004/

Affected files:
  M dashboard.xml
  M res.xml


Index: dashboard.xml
===================================================================

--- a/dashboard.xml
+++ b/dashboard.xml
@@ -12,10 +12,11 @@
                 <form string="Dashboard Action">
                     <label name="user"/>
                     <field name="user"/>
+                    <newline/>
+                    <label name="act_window"/>
+                    <field name="act_window" widget="selection"/>
                     <label name="sequence"/>
                     <field name="sequence"/>
-                    <label name="act_window"/>
-                    <field name="act_window"/>
                 </form>
                 ]]>
             </field>
@@ -24,6 +25,7 @@
         <record model="ir.ui.view" id="action_view_tree">
             <field name="model">dashboard.action</field>
             <field name="type">tree</field>
+            <field name="priority" eval="10"/>
             <field name="arch" type="xml">
                 <![CDATA[
                 <tree string="Dashboard Actions">
@@ -35,5 +37,18 @@
             </field>
         </record>

+        <record model="ir.ui.view" id="action_view_tree_sequence">
+            <field name="model">dashboard.action</field>
+            <field name="type">tree</field>
+            <field name="priority" eval="20"/>
+            <field name="arch" type="xml">
+                <![CDATA[
+ <tree string="Dashboard Actions" sequence="sequence" fill="1">
+                    <field name="act_window"/>
+                </tree>
+                ]]>
+            </field>
+        </record>
+
     </data>
 </tryton>

Index: res.xml
===================================================================

--- a/res.xml
+++ b/res.xml
@@ -15,16 +15,8 @@
                         <page string="Dashboard" id="dashboard" col="2">
                             <label name="dashboard_layout"/>
                             <field name="dashboard_layout"/>
-                            <field name="dashboard_actions" colspan="2">
-                                <tree string="Dashboard Actions"
-                                    sequence="sequence" fill="1">
-                                    <field name="act_window"/>
-                                </tree>
-                                <form string="Dashboard Action">
-                                    <label name="act_window"/>
-                                    <field name="act_window"/>
-                                </form>
-                            </field>
+                            <field name="dashboard_actions" colspan="2"
+ view_ids="dashboard.action_view_tree_sequence"/>
                         </page>
                     </xpath>
                 </data>
@@ -43,16 +35,8 @@
                         <page string="Dashboard" id="dashboard" col="2">
                             <label name="dashboard_layout"/>
                             <field name="dashboard_layout"/>
-                            <field name="dashboard_actions" colspan="2">
-                                <tree string="Dashboard Actions"
-                                    sequence="sequence" fill="1">
-                                    <field name="act_window"/>
-                                </tree>
-                                <form string="Dashboard Action">
-                                    <label name="act_window"/>
- <field name="act_window" widget="selection"/>
-                                </form>
-                            </field>
+                            <field name="dashboard_actions" colspan="2"
+ view_ids="dashboard.action_view_tree_sequence"/>
                         </page>
                     </xpath>
                 </data>



--
[email protected] mailing list

Reply via email to