Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1327)

Unified Diff: trytond/ir/module/module.xml

Issue 3991046: trytond: Allow to use XML file for views (Closed)
Patch Set: External some missing views Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trytond/ir/model.xml ('k') | trytond/ir/property.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trytond/ir/module/module.xml
===================================================================
--- a/trytond/ir/module/module.xml
+++ b/trytond/ir/module/module.xml
@@ -7,45 +7,12 @@
<record model="ir.ui.view" id="module_view_form">
<field name="model">ir.module.module</field>
<field name="type">form</field>
- <field name="arch" type="xml">
- <![CDATA[
- <form string="Module" on_write="on_write">
- <label name="name"/>
- <field name="name"/>
- <label name="version"/>
- <field name="version"/>
- <field name="dependencies" colspan="4"/>
- <label name="state"/>
- <field name="state" readonly="1"/>
- <group col="2" colspan="2" id="button">
- <button string="Mark for Upgrade" name="upgrade"/>
- <button string="Mark for Uninstallation (beta)" name="uninstall"/>
- <button string="Mark for Installation" name="install"/>
- <button string="Cancel Installation" name="install_cancel"/>
- <button string="Cancel Upgrade" name="upgrade_cancel"/>
- <button string="Cancel Uninstallation" name="uninstall_cancel"/>
- </group>
- </form>
- ]]>
- </field>
+ <field name="name">module_form</field>
</record>
<record model="ir.ui.view" id="module_view_tree">
<field name="model">ir.module.module</field>
<field name="type">tree</field>
- <field name="arch" type="xml">
- <![CDATA[
- <tree string="Modules" on_write="on_write"
- colors="If(In(Eval('state', ''), ['to upgrade', 'to install']), 'blue', If(Equal(Eval('state', ''), 'uninstalled'), 'grey', 'black'))">
- <field name="name" expand="1"/>
- <field name="version"/>
- <field name="state"/>
- <button string="Mark for Upgrade" name="upgrade"/>
- <button string="Mark for Installation" name="install"/>
- <button string="Cancel Installation" name="install_cancel"/>
- <button string="Cancel Upgrade" name="upgrade_cancel"/>
- </tree>
- ]]>
- </field>
+ <field name="name">module_list</field>
</record>
<record model="ir.action.act_window" id="act_module_form">
<field name="name">Modules</field>
@@ -71,47 +38,19 @@
<record model="ir.ui.view" id="module_dependency_view_form">
<field name="model">ir.module.module.dependency</field>
<field name="type">form</field>
- <field name="arch" type="xml">
- <![CDATA[
- <form string="Dependency">
- <label name="module"/>
- <field name="module"/>
- <newline/>
- <label name="name"/>
- <field name="name"/>
- <label name="state"/>
- <field name="state"/>
- </form>
- ]]>
- </field>
+ <field name="name">module_dependency_form</field>
</record>
<record model="ir.ui.view" id="module_dependency_view_list">
<field name="model">ir.module.module.dependency</field>
<field name="type">tree</field>
- <field name="arch" type="xml">
- <![CDATA[
- <tree string="Dependencies">
- <field name="module"/>
- <field name="name" expand="1"/>
- <field name="state"/>
- </tree>
- ]]>
- </field>
+ <field name="name">module_dependency_list</field>
</record>
<record model="ir.ui.view" id="config_wizard_item_view_tree">
<field name="model">ir.module.module.config_wizard.item</field>
<field name="type">tree</field>
- <field name="arch" type="xml">
- <![CDATA[
- <tree string="Config Wizard Items" editable="bottom">
- <field name="action"/>
- <field name="sequence"/>
- <field name="state"/>
- </tree>
- ]]>
- </field>
+ <field name="name">module_config_wizard_item_list</field>
</record>
<record model="ir.action.act_window" id="act_config_wizard_item_form">
<field name="name">Config Wizard Items</field>
@@ -141,31 +80,13 @@
<record model="ir.ui.view" id="module_config_wizard_first_view_form">
<field name="model">ir.module.module.config_wizard.first</field>
<field name="type">form</field>
- <field name="arch" type="xml">
- <![CDATA[
- <form string="Welcome to the module configuration wizard!" col="2">
- <image name="tryton-dialog-information" xexpand="0"
- xfill="0"/>
- <label string="You will be able to configure your installation depending on the modules you have installed."
- id="configure"
- yalign="0.0" xalign="0.0" xexpand="1"/>
- </form>
- ]]>
- </field>
+ <field name="name">module_config_wizard_first_form</field>
</record>
<record model="ir.ui.view" id="module_config_wizard_other_view_form">
<field name="model">ir.module.module.config_wizard.other</field>
<field name="type">form</field>
- <field name="arch" type="xml">
- <![CDATA[
- <form string="Configuration Wizard Next Step!" col="2">
- <image name="tryton-dialog-information" xexpand="0"
- xfill="0"/>
- <field name="percentage" widget="progressbar"/>
- </form>
- ]]>
- </field>
+ <field name="name">module_config_wizard_other_form</field>
</record>
<record model="ir.action.wizard" id="act_module_install_upgrade">
@@ -181,38 +102,13 @@
<record model="ir.ui.view" id="module_install_upgrade_start_view_form">
<field name="model">ir.module.module.install_upgrade.start</field>
<field name="type">form</field>
- <field name="arch" type="xml">
- <![CDATA[
- <form string="System Upgrade" col="2">
- <image name="tryton-dialog-information" xexpand="0"
- xfill="0"/>
- <group col="1" id="labels">
- <label string="Your system will be upgraded." id="upgraded"
- yalign="0.0" xalign="0.0" xexpand="1"/>
- <label string="Note that this operation my take a few minutes."
- id="operation"
- yalign="0.0" xalign="0.0" xexpand="1"/>
- </group>
- <separator name="module_info" colspan="2"/>
- <field name="module_info" colspan="2"/>
- </form>
- ]]>
- </field>
+ <field name="name">module_install_upgrade_start_form</field>
</record>
<record model="ir.ui.view" id="module_install_upgrade_done_view_form">
<field name="model">ir.module.module.install_upgrade.done</field>
<field name="type">form</field>
- <field name="arch" type="xml">
- <![CDATA[
- <form string="System Upgrade Done" col="2">
- <image name="tryton-dialog-information" xexpand="0" xfill="0"/>
- <label string="The modules have been upgraded / installed !"
- id="modules"
- yalign="0.0" xalign="0.0" xexpand="1"/>
- </form>
- ]]>
- </field>
+ <field name="name">module_install_upgrade_done_form</field>
</record>
<menuitem name="Perform Pending Installation/Upgrade"
« no previous file with comments | « trytond/ir/model.xml ('k') | trytond/ir/property.xml » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b