Allow to use XML file for views

issue70
This commit is contained in:
Cédric Krier
2012-09-26 19:38:20 +02:00
parent 545aac3bf7
commit e5446dde37
131 changed files with 1628 additions and 1577 deletions
+1
View File
@@ -1,3 +1,4 @@
* Allow to use XML file for views
* Add RPC definition
* Repace BrowseRecord by Model instance
* Replace Cache decorator by a simple LRU Cache
+3
View File
@@ -12,6 +12,7 @@ include etc/*
include trytond/backend/*/init.sql
include trytond/ir/tryton.cfg
include trytond/ir/*.xml
include trytond/ir/view/*.xml
include trytond/ir/locale/*.po
include trytond/ir/module/*.xml
include trytond/ir/ui/*.xml
@@ -20,9 +21,11 @@ include trytond/ir/ui/*.rnc
include trytond/ir/ui/icons/*.svg
include trytond/res/tryton.cfg
include trytond/res/*.xml
include trytond/res/view/*.xml
include trytond/res/locale/*.po
include trytond/test/tryton.cfg
include trytond/test/*.xml
include trytond/webdav/tryton.cfg
include trytond/webdav/*.xml
include trytond/webdav/view/*.xml
include trytond/webdav/locale/*.po
+9 -11
View File
@@ -4,15 +4,17 @@
Views
=====
The views are used to display records of an object to the user.
The views are used to display records of an :class:`ModelView
<trytond.model.ModelView>` to the user.
In Tryton, objects can have several views. An `action` opens a window and
defines which view to show.
In Tryton, :class:`ModelView <trytond.model.ModelView>` can have several views.
An `action` opens a window and defines which view to show.
The views are built from XML that is stored in the databases with the object
ir.ui.view.
The views are built from XML that is stored in the `view` directory of the
module or in the databases thanks to the model ir.ui.view.
So generally, they are defined in xml files with this kind of xml:
So generally, they are defined in xml files with this kind of xml where name is
the name of the XML file in the `view` directory:
.. highlight:: xml
@@ -23,11 +25,7 @@ So generally, they are defined in xml files with this kind of xml:
<field name="type">type name</field>
<!--field name="inherit" ref="inherit_view_id"/-->
<!--field name="field_childs">field name</field-->
<field name="arch" type="xml">
<![CDATA[
View XML ...
]]>
</field>
<field name="name">view_name</field>
</record>
+3 -3
View File
@@ -26,11 +26,11 @@ setup(name=PACKAGE,
'trytond.backend.mysql': ['init.sql'],
'trytond.backend.postgresql': ['init.sql'],
'trytond.backend.sqlite': ['init.sql'],
'trytond.ir': ['tryton.cfg', '*.xml', 'locale/*.po'],
'trytond.ir': ['tryton.cfg', '*.xml', 'view/*.xml', 'locale/*.po'],
'trytond.ir.module': ['*.xml'],
'trytond.ir.ui': ['*.xml', '*.rng', '*.rnc'],
'trytond.res': ['tryton.cfg', '*.xml', 'locale/*.po'],
'trytond.webdav': ['tryton.cfg', '*.xml', 'locale/*.po'],
'trytond.res': ['tryton.cfg', '*.xml', 'view/*.xml', 'locale/*.po'],
'trytond.webdav': ['tryton.cfg', '*.xml', 'view/*.xml', 'locale/*.po'],
'trytond.test': ['tryton.cfg', '*.xml'],
},
scripts=['bin/trytond'],
+1 -1
View File
@@ -24,7 +24,7 @@ CREATE TABLE ir_ui_view (
id BIGINT AUTO_INCREMENT NOT NULL,
model VARCHAR(255) NOT NULL,
type VARCHAR(255),
arch TEXT NOT NULL,
data TEXT NOT NULL,
field_childs VARCHAR(255),
priority BIGINT NOT NULL default 0,
PRIMARY KEY(id)
+1 -1
View File
@@ -30,7 +30,7 @@ CREATE TABLE ir_ui_view (
id INTEGER DEFAULT NEXTVAL('ir_ui_view_id_seq') NOT NULL,
model VARCHAR NOT NULL,
"type" VARCHAR,
arch TEXT NOT NULL,
data TEXT NOT NULL,
field_childs VARCHAR,
priority INTEGER NOT NULL,
PRIMARY KEY(id)
+1 -1
View File
@@ -22,7 +22,7 @@ CREATE TABLE ir_ui_view (
id INTEGER PRIMARY KEY AUTOINCREMENT,
model VARCHAR,
"type" VARCHAR,
arch TEXT,
data TEXT,
field_childs VARCHAR,
priority INTEGER
);
+15 -256
View File
@@ -7,42 +7,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="action_view_form">
<field name="model">ir.action</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Action">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general">
<label name="usage"/>
<field name="usage"/>
<label name="icon"/>
<field name="icon"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
]]>
</field>
<field name="name">action_form</field>
</record>
<record model="ir.ui.view" id="action_view_tree">
<field name="model">ir.action</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Action">
<field name="name"/>
<field name="type"/>
</tree>
]]>
</field>
<field name="name">action_list</field>
</record>
<record model="ir.action.act_window" id="act_action_form">
<field name="name">Actions</field>
@@ -67,93 +37,24 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="action_keyword_view_list">
<field name="model">ir.action.keyword</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Keywords">
<field name="action"/>
<field name="model"/>
<field name="keyword"/>
</tree>
]]>
</field>
<field name="name">action_keyword_list</field>
</record>
<record model="ir.ui.view" id="action_keyword_view_form">
<field name="model">ir.action.keyword</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Keyword">
<label name="action"/>
<field name="action"/>
<newline/>
<label name="model"/>
<field name="model"/>
<label name="keyword"/>
<field name="keyword"/>
</form>
]]>
</field>
<field name="name">action_keyword_form</field>
</record>
<record model="ir.ui.view" id="action_report_view_form">
<field name="model">ir.action.report</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Report">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general">
<label name="model"/>
<field name="model"/>
<label name="report_name"/>
<field name="report_name"/>
<label name="icon"/>
<field name="icon"/>
<newline/>
<label name="report"/>
<field name="report"/>
<label name="report_content"/>
<field name="report_content"/>
<label name="template_extension"/>
<field name="template_extension"/>
<label name="extension"/>
<field name="extension"/>
<label name="style"/>
<field name="style"/>
<label name="direct_print"/>
<field name="direct_print"/>
<label name="email"/>
<field name="email" colspan="3"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
]]>
</field>
<field name="name">action_report_form</field>
</record>
<record model="ir.ui.view" id="action_report_view_tree">
<field name="model">ir.action.report</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Report xml">
<field name="name"/>
<field name="type"/>
<field name="model"/>
<field name="report_name"/>
</tree>
]]>
</field>
<field name="name">action_report_list</field>
</record>
<record model="ir.action.act_window" id="act_action_report_form">
<field name="name">Reports</field>
@@ -178,59 +79,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="action_act_window_view_form">
<field name="model">ir.action.act_window</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Open a Window">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general" col="6">
<label name="res_model"/>
<field name="res_model"/>
<label name="usage"/>
<field name="usage"/>
<label name="icon"/>
<field name="icon"/>
<field name="act_window_views" colspan="6"
view_ids="ir.act_window_view_view_list2"/>
<label name="domain"/>
<field name="domain" colspan="5"/>
<label name="context"/>
<field name="context" colspan="5"/>
<label name="search_value"/>
<field name="search_value" colspan="5"/>
<label name="limit"/>
<field name="limit"/>
<label name="auto_refresh"/>
<field name="auto_refresh"/>
<label name="window_name"/>
<field name="window_name"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
]]>
</field>
<field name="name">action_act_window_form</field>
</record>
<record model="ir.ui.view" id="action_act_window_view_tree">
<field name="model">ir.action.act_window</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Open Window">
<field name="name"/>
<field name="res_model"/>
<field name="domain"/>
</tree>
]]>
</field>
<field name="name">action_act_window_list</field>
</record>
<record model="ir.action.act_window" id="act_action_act_window_form">
<field name="name">Window Actions</field>
@@ -253,96 +107,32 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="act_window_view_view_form">
<field name="model">ir.action.act_window.view</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="View" col="2">
<label name="act_window"/>
<field name="act_window"/>
<label name="sequence"/>
<field name="sequence"/>
<label name="view"/>
<field name="view"/>
</form>
]]>
</field>
<field name="name">action_act_window_view_form</field>
</record>
<record model="ir.ui.view" id="act_window_view_view_list">
<field name="model">ir.action.act_window.view</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="arch" type="xml">
<![CDATA[
<tree string="Views">
<field name="act_window"/>
<field name="sequence"/>
<field name="view"/>
</tree>
]]>
</field>
<field name="name">action_act_window_view_list</field>
</record>
<record model="ir.ui.view" id="act_window_view_view_list2">
<field name="model">ir.action.act_window.view</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<![CDATA[
<tree string="Views" sequence="sequence">
<field name="sequence" tree_invisible="1"/>
<field name="view" expand="1"/>
</tree>
]]>
</field>
<field name="name">action_act_window_view_list2</field>
</record>
<record model="ir.ui.view" id="action_wizard_view_form">
<field name="model">ir.action.wizard</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Wizard">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general">
<label name="wiz_name"/>
<field name="wiz_name"/>
<label name="model"/>
<field name="model"/>
<label name="icon"/>
<field name="icon"/>
<newline/>
<label name="email"/>
<field name="email" colspan="3"/>
<label name="window"/>
<field name="window"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
]]>
</field>
<field name="name">action_wizard_form</field>
</record>
<record model="ir.ui.view" id="action_wizard_view_tree">
<field name="model">ir.action.wizard</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Wizard">
<field name="name"/>
<field name="type"/>
<field name="wiz_name"/>
</tree>
]]>
</field>
<field name="name">action_wizard_list</field>
</record>
<record model="ir.action.act_window" id="act_action_wizard_form">
<field name="name">Wizards</field>
@@ -367,43 +157,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="action_url_view_form">
<field name="model">ir.action.url</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="URL">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general">
<label name="url"/>
<field name="url"/>
<label name="icon"/>
<field name="icon"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
]]>
</field>
<field name="name">action_url_form</field>
</record>
<record model="ir.ui.view" id="action_url_view_tree">
<field name="model">ir.action.url</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="URL">
<field name="name"/>
<field name="type"/>
<field name="url"/>
</tree>
]]>
</field>
<field name="name">action_url_list</field>
</record>
<record model="ir.action.act_window" id="act_action_url_form">
<field name="name">URLs</field>
+2 -43
View File
@@ -6,53 +6,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="attachment_view_form">
<field name="model">ir.attachment</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Attachments" col="2">
<group id="content" col="2" colspan="1">
<label name="resource"/>
<field name="resource"/>
<label name="name"/>
<group id="name_data" col="2" colspan="1">
<field name="name"/>
<field name="data" xexpand="0"/>
</group>
<label name="type"/>
<field name="type"/>
<label name="link"/>
<field name="link" widget="url"/>
</group>
<field name="data" widget="image" readonly="1"/>
<notebook>
<page name="description" col="1">
<field name="description"/>
</page>
</notebook>
<group id="last" col="4" colspan="2">
<label name="last_user"/>
<field name="last_user"/>
<label name="last_modification"/>
<field name="last_modification"/>
</group>
</form>
]]>
</field>
<field name="name">attachment_form</field>
</record>
<record model="ir.ui.view" id="attachment_view_tree">
<field name="model">ir.attachment</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Attachments" editable="bottom">
<field name="resource"/>
<field name="name"/>
<field name="summary"/>
<field name="last_user"/>
<field name="last_modification"/>
<field name="data"/>
</tree>
]]>
</field>
<field name="name">attachment_list</field>
</record>
<record model="ir.action.act_window" id="act_attachment_form">
<field name="name">Attachments</field>
+2 -46
View File
@@ -9,56 +9,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="cron_view_tree">
<field name="model">ir.cron</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Scheduled Actions">
<field name="next_call"/>
<field name="name"/>
<field name="user"/>
<field name="request_user"/>
<field name="interval_number"/>
<field name="interval_type"/>
<field name="number_calls"/>
<field name="active"/>
</tree>
]]>
</field>
<field name="name">cron_list</field>
</record>
<record model="ir.ui.view" id="cron_view_form">
<field name="model">ir.cron</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Scheduled Action">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active"/>
<label name="user"/>
<field name="user"/>
<label name="request_user"/>
<field name="request_user"/>
<label name="interval_number"/>
<field name="interval_number"/>
<label name="interval_type"/>
<field name="interval_type"/>
<label name="number_calls"/>
<field name="number_calls"/>
<label name="next_call"/>
<field name="next_call"/>
<label name="repeat_missed"/>
<field name="repeat_missed"/>
<separator string="Action to trigger" colspan="4"
id="action_trigger"/>
<label name="model"/>
<field name="model"/>
<label name="function"/>
<field name="function"/>
<label name="args"/>
<field name="args" colspan="3" widget="char"/>
</form>
]]>
</field>
<field name="name">cron_form</field>
</record>
<record model="ir.action.act_window" id="act_cron_form">
<field name="name">Scheduled Actions</field>
+2 -19
View File
@@ -6,29 +6,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="export_view_form">
<field name="model">ir.export</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Exports">
<label name="name"/>
<field name="name"/>
<label name="resource"/>
<field name="resource"/>
<field name="export_fields" colspan="4"/>
</form>
]]>
</field>
<field name="name">export_form</field>
</record>
<record model="ir.ui.view" id="export_view_tree">
<field name="model">ir.export</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Exports">
<field name="name"/>
<field name="resource"/>
</tree>
]]>
</field>
<field name="name">export_list</field>
</record>
<record model="ir.action.act_window" id="act_export_form">
<field name="name">Exports</field>
+2 -37
View File
@@ -92,47 +92,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="lang_view_tree">
<field name="model">ir.lang</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Languages" editable="bottom">
<field name="name"/>
<field name="code"/>
<field name="direction"/>
<field name="translatable"/>
<field name="active"/>
</tree>
]]>
</field>
<field name="name">lang_list</field>
</record>
<record model="ir.ui.view" id="lang_view_form">
<field name="model">ir.lang</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Language" col="6">
<label name="name"/>
<field name="name"/>
<label name="code"/>
<field name="code"/>
<label name="active"/>
<field name="active"/>
<label name="direction"/>
<field name="direction"/>
<label name="translatable"/>
<field name="translatable"/>
<separator string="Date Formatting" colspan="6" id="date"/>
<label name="date"/>
<field name="date"/>
<separator string="Numbers Formatting" colspan="6" id="number"/>
<label name="grouping"/>
<field name="grouping"/>
<label name="thousands_sep"/>
<field name="thousands_sep"/>
<label name="decimal_point"/>
<field name="decimal_point"/>
</form>
]]>
</field>
<field name="name">lang_form</field>
</record>
<record model="ir.action.act_window" id="act_lang_form">
<field name="name">Languages</field>
+11 -152
View File
@@ -7,35 +7,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="model_view_form">
<field name="model">ir.model</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Model Description" col="6">
<label name="name"/>
<field name="name"/>
<label name="model"/>
<field name="model"/>
<label name="module"/>
<field name="module"/>
<separator name="info" colspan="6"/>
<field name="info" colspan="6"/>
<field name="fields" colspan="6" readonly="1"/>
</form>
]]>
</field>
<field name="name">model_form</field>
</record>
<record model="ir.ui.view" id="model_view_tree">
<field name="model">ir.model</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Model Description">
<field name="name"/>
<field name="model"/>
<field name="info"/>
<field name="module"/>
</tree>
]]>
</field>
<field name="name">model_list</field>
</record>
<record model="ir.action.act_window" id="act_model_form">
<field name="name">Models</field>
@@ -58,42 +35,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="model_fields_view_form">
<field name="model">ir.model.field</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Fields">
<label name="name"/>
<field name="name"/>
<label name="model"/>
<field name="model" readonly="1"/>
<label name="ttype"/>
<field name="ttype"/>
<label name="relation"/>
<field name="relation"/>
<label name="field_description"/>
<field name="field_description" colspan="3"/>
<label name="help" yfill="1" xalign="0.0"/>
<field name="help" colspan="3"/>
<label name="module"/>
<field name="module"/>
</form>
]]>
</field>
<field name="name">model_field_form</field>
</record>
<record model="ir.ui.view" id="model_fields_view_tree">
<field name="model">ir.model.field</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Fields">
<field name="name"/>
<field name="model"/>
<field name="ttype"/>
<field name="relation"/>
<field name="field_description"/>
<field name="module"/>
</tree>
]]>
</field>
<field name="name">model_field_list</field>
</record>
<record model="ir.action.act_window" id="act_model_fields_form">
<field name="name">Fields</field>
@@ -116,43 +63,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="model_access_view_tree">
<field name="model">ir.model.access</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Access controls">
<field name="perm_read"/>
<field name="perm_write"/>
<field name="perm_create"/>
<field name="perm_delete"/>
<field name="model"/>
<field name="group"/>
</tree>
]]>
</field>
<field name="name">model_access_list</field>
</record>
<record model="ir.ui.view" id="model_access_view_form">
<field name="model">ir.model.access</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Access controls">
<label name="model"/>
<field name="model"/>
<label name="group"/>
<field name="group"/>
<newline/>
<label name="perm_read"/>
<field name="perm_read"/>
<label name="perm_write"/>
<field name="perm_write"/>
<label name="perm_create"/>
<field name="perm_create"/>
<label name="perm_delete"/>
<field name="perm_delete"/>
<separator name="description" colspan="4"/>
<field name="description" colspan="4"/>
</form>
]]>
</field>
<field name="name">model_access_form</field>
</record>
<record model="ir.action.act_window" id="act_model_access_form">
<field name="name">Models Access</field>
@@ -176,44 +92,13 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="model_field_access_view_tree">
<field name="model">ir.model.field.access</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Field Access">
<field name="perm_read"/>
<field name="perm_write"/>
<field name="perm_create"/>
<field name="perm_delete"/>
<field name="field"/>
<field name="group"/>
</tree>
]]>
</field>
<field name="name">model_field_access_list</field>
</record>
<record model="ir.ui.view" id="model_field_access_view_form">
<field name="model">ir.model.field.access</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Field Access">
<label name="field"/>
<field name="field"/>
<label name="group"/>
<field name="group"/>
<newline/>
<label name="perm_read"/>
<field name="perm_read"/>
<label name="perm_write"/>
<field name="perm_write"/>
<label name="perm_create"/>
<field name="perm_create"/>
<label name="perm_delete"/>
<field name="perm_delete"/>
<separator name="description" colspan="4"/>
<field name="description" colspan="4"/>
</form>
]]>
</field>
<field name="name">model_field_access_form</field>
</record>
<record model="ir.action.act_window" id="act_model_field_access_form">
@@ -244,16 +129,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="print_model_graph_start_view_form">
<field name="model">ir.model.print_model_graph.start</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Print Model Graph" col="2">
<label name="level"/>
<field name="level"/>
<label name="filter"/>
<field name="filter"/>
</form>
]]>
</field>
<field name="name">model_print_model_graph_start_form</field>
</record>
<record model="ir.action.wizard" id="print_model_graph">
@@ -270,29 +146,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="model_button_view_list">
<field name="model">ir.model.button</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Buttons">
<field name="model"/>
<field name="name"/>
</tree>
]]>
</field>
<field name="name">model_button_list</field>
</record>
<record model="ir.ui.view" id="model_button_view_form">
<field name="model">ir.model.button</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Button">
<label name="model"/>
<field name="model"/>
<label name="name"/>
<field name="name"/>
<field name="groups" colspan="4"/>
</form>
]]>
</field>
<field name="name">model_button_form</field>
</record>
<record model="ir.action.act_window" id="act_model_button_form">
+9 -113
View File
@@ -7,45 +7,12 @@ this repository contains the full copyright notices and license terms. -->
<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 @@ this repository contains the full copyright notices and license terms. -->
<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 @@ this repository contains the full copyright notices and license terms. -->
<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 @@ this repository contains the full copyright notices and license terms. -->
<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"
+2 -21
View File
@@ -6,31 +6,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="property_view_form">
<field name="model">ir.property</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Property">
<label name="field"/>
<field name="field" colspan="3"/>
<label name="value"/>
<field name="value" colspan="3"/>
<label name="res"/>
<field name="res" colspan="3"/>
</form>
]]>
</field>
<field name="name">property_form</field>
</record>
<record model="ir.ui.view" id="property_view_tree">
<field name="model">ir.property</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Properties">
<field name="field"/>
<field name="value"/>
<field name="res"/>
</tree>
]]>
</field>
<field name="name">property_list</field>
</record>
<record model="ir.action.act_window" id="act_property_form_default">
<field name="name">Default Properties</field>
+4 -64
View File
@@ -6,53 +6,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="rule_group_view_form">
<field name="model">ir.rule.group</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Record rules" col="6">
<label name="model"/>
<field name="model"/>
<label name="global_p"/>
<field name="global_p"/>
<label name="default_p"/>
<field name="default_p"/>
<group col="4" colspan="6" id="perm">
<label name="perm_read"/>
<field name="perm_read"/>
<label name="perm_write"/>
<field name="perm_write"/>
<label name="perm_create"/>
<field name="perm_create"/>
<label name="perm_delete"/>
<field name="perm_delete"/>
</group>
<label name="name"/>
<field name="name" colspan="5"/>
<field name="rules" colspan="6"/>
<label string="The rule is satisfied if at least one test is True"
colspan="6" xalign="0.0" id="satisfied"/>
<label string="If there is no test defined, the rule is always satisfied if not global"
colspan="6" xalign="0.0" id="no_test"/>
</form>
]]>
</field>
<field name="name">rule_group_form</field>
</record>
<record model="ir.ui.view" id="rule_group_view_tree">
<field name="model">ir.rule.group</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Record rules">
<field name="perm_read"/>
<field name="perm_write"/>
<field name="perm_create"/>
<field name="perm_delete"/>
<field name="model"/>
<field name="name"/>
<field name="global_p"/>
<field name="default_p"/>
</tree>
]]>
</field>
<field name="name">rule_group_list</field>
</record>
<record model="ir.action.act_window" id="act_rule_group_form">
<field name="name">Record Rules</field>
@@ -75,31 +34,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="rule_view_form">
<field name="model">ir.rule</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Test" col="6">
<label name="field"/>
<field name="field"/>
<label name="operator"/>
<field name="operator"/>
<label name="operand"/>
<field name="operand"/>
</form>
]]>
</field>
<field name="name">rule_form</field>
</record>
<record model="ir.ui.view" id="rule_view_tree">
<field name="model">ir.rule</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Test">
<field name="field"/>
<field name="operator"/>
<field name="operand"/>
</tree>
]]>
</field>
<field name="name">rule_list</field>
</record>
</data>
</tryton>
+4 -80
View File
@@ -9,64 +9,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="sequence_view_form">
<field name="model">ir.sequence</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Sequences">
<label name="name"/>
<field name="name" colspan="3"/>
<label name="code"/>
<field name="code"/>
<label name="active"/>
<field name="active"/>
<label name="prefix"/>
<field name="prefix"/>
<label name="suffix"/>
<field name="suffix"/>
<label name="type"/>
<field name="type"/>
<group string="Incremental" id="incremental" colspan="4"
states="{'invisible': Not(In(Eval('type'), ['incremental']))}">
<label name="padding"/>
<field name="padding" />
<label name="number_increment"/>
<field name="number_increment"/>
<label name="number_next"/>
<field name="number_next"/>
</group>
<group string="Timestamp" id="timestamp" colspan="4"
states="{'invisible': Not(In(Eval('type'), ['decimal timestamp', 'hexadecimal timestamp']))}">
<label name="timestamp_rounding"/>
<field name="timestamp_rounding"/>
<label name="timestamp_offset"/>
<field name="timestamp_offset"/>
<label name="last_timestamp"/>
<field name="last_timestamp"/>
</group>
<separator string="Legend (Placeholders for prefix, suffix)" colspan="4"
id="legend"/>
<label string="Year:" id="label_year"/>
<label string="${year}" colspan="3" xalign="0.0" xexpand="1" id="year"/>
<label string="Month:" id="label_month"/>
<label string="${month}" colspan="3" xalign="0.0" xexpand="1" id="month"/>
<label string="Day:" id="label_day"/>
<label string="${day}" colspan="3" xalign="0.0" xexpand="1" id="day"/>
</form>
]]>
</field>
<field name="name">sequence_form</field>
</record>
<record model="ir.ui.view" id="sequence_view_tree">
<field name="model">ir.sequence</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Sequences">
<field name="name"/>
<field name="code"/>
<field name="type"/>
<field name="active"/>
</tree>
]]>
</field>
<field name="name">sequence_list</field>
</record>
<record model="ir.action.act_window" id="act_sequence_form">
<field name="name">Sequences</field>
@@ -93,19 +41,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">ir.sequence.strict</field>
<field name="type">form</field>
<field name="inherit" ref="sequence_view_form"/>
<field name="arch" type="xml">
<![CDATA[
]]>
</field>
</record>
<record model="ir.ui.view" id="sequence_strict_view_tree">
<field name="model">ir.sequence.strict</field>
<field name="type">tree</field>
<field name="inherit" ref="sequence_view_tree"/>
<field name="arch" type="xml">
<![CDATA[
]]>
</field>
</record>
<record model="ir.action.act_window" id="act_sequence_strict_form">
<field name="name">Sequences Strict</field>
@@ -131,28 +71,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="sequence_type_view_form">
<field name="model">ir.sequence.type</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Sequence Type">
<label name="name"/>
<field name="name"/>
<label name="code"/>
<field name="code" readonly="1"/>
</form>
]]>
</field>
<field name="name">sequence_type_form</field>
</record>
<record model="ir.ui.view" id="sequence_type_view_tree">
<field name="model">ir.sequence.type</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Sequence Type">
<field name="name"/>
<field name="code"/>
</tree>
]]>
</field>
<field name="name">sequence_type_list</field>
</record>
<record model="ir.action.act_window"
id="act_sequence_type_form">
+9 -100
View File
@@ -6,48 +6,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="translation_view_form">
<field name="model">ir.translation</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Translations" col="6">
<label name="name"/>
<field name="name"/>
<label name="type"/>
<field name="type"/>
<label name="res_id"/>
<field name="res_id"/>
<label name="fuzzy"/>
<field name="fuzzy"/>
<label name="lang"/>
<field name="lang"/>
<label name="module"/>
<field name="module"/>
<group col="2" colspan="6" yexpand="1" yfill="1" id="src_value">
<separator name="src"/>
<separator name="value"/>
<field name="src"/>
<field name="value" spell="Eval('lang')"/>
</group>
</form>
]]>
</field>
<field name="name">translation_form</field>
</record>
<record model="ir.ui.view" id="translation_view_tree">
<field name="model">ir.translation</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Translations" editable="bottom">
<field name="src"/>
<field name="value"/>
<field name="fuzzy"/>
<field name="name"/>
<field name="lang"/>
<field name="type"/>
<field name="res_id"/>
<field name="module"/>
</tree>
]]>
</field>
<field name="name">translation_list</field>
</record>
<record model="ir.action.act_window" id="act_translation_form">
<field name="name">Translations</field>
@@ -259,29 +223,13 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="translation_set_report_start_view_form">
<field name="model">ir.translation.set_report.start</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Set Report Translations" col="2">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Synchronize Report Translations?" id="synchronize"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
]]>
</field>
<field name="name">translation_set_report_start_form</field>
</record>
<record model="ir.ui.view" id="translation_set_report_succeed_view_form">
<field name="model">ir.translation.set_report.succeed</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Set Report Translations" col="2">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Set Translations Succeed!" id="succeed"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
]]>
</field>
<field name="name">translation_set_report_succeed_form</field>
</record>
<record model="ir.action.wizard" id="act_translation_set_report">
@@ -297,29 +245,13 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="translation_clean_start_view_form">
<field name="model">ir.translation.clean.start</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Clean Translations" col="2">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Clean Translations?" id="clean"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
]]>
</field>
<field name="name">translation_clean_start_form</field>
</record>
<record model="ir.ui.view" id="translation_clean_succeed_view_form">
<field name="model">ir.translation.clean.succeed</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Clean Translations">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Clean Translations Succeed!" id="succeed"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
]]>
</field>
<field name="name">translation_clean_succeed_form</field>
</record>
<record model="ir.action.wizard" id="act_translation_clean">
@@ -335,14 +267,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="translation_update_start_view_form">
<field name="model">ir.translation.update.start</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Synchronize Translations">
<label name="language"/>
<field name="language" widget="selection"/>
</form>
]]>
</field>
<field name="name">translation_update_start_form</field>
</record>
<record model="ir.action.wizard" id="act_translation_update">
@@ -358,29 +283,13 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="translation_export_start_view_form">
<field name="model">ir.translation.export.start</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Export Translation">
<label name="language"/>
<field name="language" widget="selection"/>
<label name="module"/>
<field name="module" widget="selection"/>
</form>
]]>
</field>
<field name="name">translation_export_start_form</field>
</record>
<record model="ir.ui.view" id="translation_export_result_view_form">
<field name="model">ir.translation.export.result</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Export Translation">
<label name="file"/>
<field name="file"/>
</form>
]]>
</field>
<field name="name">translation_export_result_form</field>
</record>
<record model="ir.action.wizard" id="act_translation_export">
+2 -45
View File
@@ -6,55 +6,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="trigger_view_form">
<field name="model">ir.trigger</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Trigger">
<label name="name"/>
<field name="name" colspan="3"/>
<label name="model"/>
<field name="model"/>
<group colspan="2" col="10" id="checkboxes">
<label name="active"/>
<field name="active" xexpand="0"/>
<label name="on_time"/>
<field name="on_time" xexpand="0"/>
<label name="on_create"/>
<field name="on_create" xexpand="0"/>
<label name="on_write"/>
<field name="on_write" xexpand="0"/>
<label name="on_delete"/>
<field name="on_delete" xexpand="0"/>
</group>
<label name="condition"/>
<field name="condition" colspan="3"/>
<label name="limit_number"/>
<field name="limit_number"/>
<label name="minimum_delay"/>
<field name="minimum_delay" widget="float_time"/>
<label name="action_model"/>
<field name="action_model"/>
<label name="action_function"/>
<field name="action_function"/>
</form>
]]>
</field>
<field name="name">trigger_form</field>
</record>
<record model="ir.ui.view" id="trigger_view_tree">
<field name="model">ir.trigger</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Triggers">
<field name="name"/>
<field name="model"/>
<field name="on_time"/>
<field name="on_create"/>
<field name="on_write"/>
<field name="on_delete"/>
<field name="active"/>
</tree>
]]>
</field>
<field name="name">trigger_list</field>
</record>
<record model="ir.action.act_window" id="act_trigger_form">
<field name="name">Triggers</field>
+2 -24
View File
@@ -6,34 +6,12 @@
<record model="ir.ui.view" id="icon_view_tree">
<field name="model">ir.ui.icon</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Icons" sequence="sequence">
<field name="name" icon="name"/>
<field name="module"/>
<field name="path"/>
<field name="sequence" tree_invisible="1"/>
</tree>
]]>
</field>
<field name="name">icon_view_list</field>
</record>
<record model="ir.ui.view" id="icon_view_form">
<field name="model">ir.ui.icon</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Icon">
<label name="name"/>
<field name="name"/>
<label name="sequence"/>
<field name="sequence"/>
<label name="module"/>
<field name="module"/>
<label name="path"/>
<field name="path"/>
</form>
]]>
</field>
<field name="name">icon_view_form</field>
</record>
<record model="ir.action.act_window" id="act_icon_form">
<field name="name">Icons</field>
+3 -35
View File
@@ -8,52 +8,20 @@ this repository contains the full copyright notices and license terms. -->
<field name="type">tree</field>
<field name="field_childs">childs</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<![CDATA[
<tree string="Menu" keyword_open="1">
<field name="name" icon="icon" expand="1"/>
</tree>
]]>
</field>
<field name="name">ui_menu_tree</field>
</record>
<record model="ir.ui.view" id="menu_view_list">
<field name="model">ir.ui.menu</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="arch" type="xml">
<![CDATA[
<tree string="Menu">
<field name="complete_name" icon="icon" expand="1"/>
</tree>
]]>
</field>
<field name="name">ui_menu_list</field>
</record>
<record model="ir.ui.view" id="menu_view_form">
<field name="model">ir.ui.menu</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Menu">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active"/>
<label name="parent"/>
<field name="parent"/>
<label name="icon"/>
<field name="icon"/>
<label name="action"/>
<field name="action"/>
<label name="sequence"/>
<field name="sequence"/>
<label name="complete_name"/>
<field name="complete_name" colspan="3"/>
<field name="groups" colspan="4"/>
</form>
]]>
</field>
<field name="name">ui_menu_form</field>
</record>
<record model="ir.action.act_window" id="act_menu_tree">
+36 -9
View File
@@ -6,8 +6,8 @@ from lxml import etree
from difflib import SequenceMatcher
from trytond.model import ModelView, ModelSQL, fields
from trytond.backend import TableHandler
from trytond.pyson import CONTEXT, Eval
from trytond.tools import safe_eval
from trytond.pyson import CONTEXT, Eval, Bool
from trytond.tools import safe_eval, file_open
from trytond.transaction import Transaction
from trytond.wizard import Wizard, StateView, StateAction, Button
from trytond.pool import Pool
@@ -34,13 +34,21 @@ class View(ModelSQL, ModelView):
('graph', 'Graph'),
('board', 'Board'),
], 'View Type', select=True)
arch = fields.Text('View Architecture')
data = fields.Text('Data')
name = fields.Char('Name', states={
'invisible': ~(Eval('module') & Eval('name')),
}, depends=['module'], readonly=True)
arch = fields.Function(fields.Text('View Architecture', states={
'readonly': Bool(Eval('name')),
}, depends=['name']), 'get_arch', setter='set_arch')
inherit = fields.Many2One('ir.ui.view', 'Inherited View', select=True,
ondelete='CASCADE')
field_childs = fields.Char('Children Field', states={
'invisible': Eval('type') != 'tree',
}, depends=['type'])
module = fields.Char('Module', readonly=True)
module = fields.Char('Module', states={
'invisible': ~Eval('module'),
}, readonly=True)
domain = fields.Char('Domain', states={
'invisible': ~Eval('inherit'),
}, depends=['inherit'])
@@ -61,8 +69,14 @@ class View(ModelSQL, ModelView):
@classmethod
def __register__(cls, module_name):
cursor = Transaction().cursor
table = TableHandler(cursor, cls, module_name)
# Migration from 2.4 arch moved into data
if table.column_exist('arch'):
table.column_rename('arch', 'data')
super(View, cls).__register__(module_name)
table = TableHandler(Transaction().cursor, cls, module_name)
# Migration from 1.0 arch no more required
table.not_null_action('arch', action='remove')
@@ -70,10 +84,6 @@ class View(ModelSQL, ModelView):
# Migration from 2.4 model no more required
table.not_null_action('model', action='remove')
@staticmethod
def default_arch():
return '<?xml version="1.0"?>'
@staticmethod
def default_priority():
return 16
@@ -213,6 +223,23 @@ class View(ModelSQL, ModelView):
(view.model, 'view', view.module) + tuple(strings))
return True
def get_arch(self, name):
value = None
if self.name and self.module:
path = os.path.join(self.module, 'view', self.name + '.xml')
try:
with file_open(path, subdir='modules') as fp:
value = fp.read()
except IOError:
pass
if not value:
value = self.data
return value
@classmethod
def set_arch(cls, views, name, value):
cls.write(views, {'data': value})
@classmethod
def delete(cls, views):
super(View, cls).delete(views)
+9 -115
View File
@@ -12,43 +12,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="view_view_form">
<field name="model">ir.ui.view</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="View">
<label name="model"/>
<field name="model"/>
<label name="type"/>
<field name="type"/>
<label name="inherit"/>
<field name="inherit"/>
<label name="domain"/>
<field name="domain"/>
<label name="priority"/>
<field name="priority"/>
<label name="field_childs"/>
<field name="field_childs"/>
<separator name="arch" colspan="4"/>
<field name="arch" colspan="4"/>
<button name="show" string="_Show" colspan="4"/>
</form>
]]>
</field>
<field name="name">ui_view_form</field>
</record>
<record model="ir.ui.view" id="view_view_tree">
<field name="model">ir.ui.view</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree>
<field name="priority"/>
<field name="model"/>
<field name="type"/>
<field name="inherit"/>
<field name="domain"/>
<field name="field_childs"/>
</tree>
]]>
</field>
<field name="name">ui_view_list</field>
</record>
<record model="ir.action.act_window" id="act_view_form">
<field name="name">Views</field>
@@ -72,35 +41,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="view_sc_view_form">
<field name="model">ir.ui.view_sc</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Shortcut">
<label name="name"/>
<field name="name" colspan="3"/>
<label name="resource"/>
<field name="resource"/>
<label name="res_id"/>
<field name="res_id"/>
<label name="user_id"/>
<field name="user_id"/>
<label name="sequence"/>
<field name="sequence"/>
</form>
]]>
</field>
<field name="name">ui_view_sc_form</field>
</record>
<record model="ir.ui.view" id="view_sc_view_tree">
<field name="model">ir.ui.view_sc</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Shortcut">
<field name="name"/>
<field name="user_id"/>
<field name="sequence"/>
</tree>
]]>
</field>
<field name="name">ui_view_sc_list</field>
</record>
<record model="ir.action.act_window" id="act_view_sc_form">
<field name="name">View Shortcuts</field>
@@ -125,13 +71,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="view_sc_view_board">
<field name="model">ir.ui.view_sc</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Shortcuts" keyword_open="1" sequence="sequence">
<field name="name" expand="1"/>
</tree>
]]>
</field>
<field name="name">ui_view_sc_board</field>
</record>
<record model="ir.action.wizard" id="act_view_sc_add">
@@ -153,34 +93,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="view_tree_width_view_form">
<field name="model">ir.ui.view_tree_width</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="View Tree Width">
<label name="model"/>
<field name="model"/>
<label name="field"/>
<field name="field"/>
<label name="user"/>
<field name="user"/>
<label name="width"/>
<field name="width"/>
</form>
]]>
</field>
<field name="name">ui_view_tree_width_form</field>
</record>
<record model="ir.ui.view" id="view_tree_width_view_tree">
<field name="model">ir.ui.view_tree_width</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Views Tree Width">
<field name="model"/>
<field name="field"/>
<field name="user"/>
<field name="width"/>
</tree>
]]>
</field>
<field name="name">ui_view_tree_width_list</field>
</record>
<record model="ir.action.act_window" id="act_view_tree_width_form">
<field name="name">View Tree Width</field>
@@ -205,36 +123,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="view_tree_expanded_state_form">
<field name="model">ir.ui.view_tree_expanded_state</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="View Tree Expanded State">
<label name="model"/>
<field name="model"/>
<label name="user"/>
<field name="user"/>
<label name="domain"/>
<field name="domain"/>
<label name="child_name" />
<field name="child_name" />
<separator name="nodes" colspan="4" />
<field name="nodes" colspan="4"/>
</form>
]]>
</field>
<field name="name">ui_view_tree_expanded_state_form</field>
</record>
<record model="ir.ui.view" id="view_tree_expanded_state_tree">
<field name="model">ir.ui.view_tree_expanded_state</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Views Tree Expanded State">
<field name="model"/>
<field name="domain"/>
<field name="user"/>
<field name="child_name"/>
</tree>
]]>
</field>
<field name="name">ui_view_tree_expanded_state_list</field>
</record>
<record model="ir.action.act_window" id="act_view_tree_expanded_state">
<field name="name">Tree Expanded State</field>
@@ -0,0 +1,39 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Open a Window">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general" col="6">
<label name="res_model"/>
<field name="res_model"/>
<label name="usage"/>
<field name="usage"/>
<label name="icon"/>
<field name="icon"/>
<field name="act_window_views" colspan="6"
view_ids="ir.act_window_view_view_list2"/>
<label name="domain"/>
<field name="domain" colspan="5"/>
<label name="context"/>
<field name="context" colspan="5"/>
<label name="search_value"/>
<field name="search_value" colspan="5"/>
<label name="limit"/>
<field name="limit"/>
<label name="auto_refresh"/>
<field name="auto_refresh"/>
<label name="window_name"/>
<field name="window_name"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Open Window">
<field name="name"/>
<field name="res_model"/>
<field name="domain"/>
</tree>
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="View" col="2">
<label name="act_window"/>
<field name="act_window"/>
<label name="sequence"/>
<field name="sequence"/>
<label name="view"/>
<field name="view"/>
</form>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Views">
<field name="act_window"/>
<field name="sequence"/>
<field name="view"/>
</tree>
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- 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 string="Views" sequence="sequence">
<field name="sequence" tree_invisible="1"/>
<field name="view" expand="1"/>
</tree>
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Action">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general">
<label name="usage"/>
<field name="usage"/>
<label name="icon"/>
<field name="icon"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Keyword">
<label name="action"/>
<field name="action"/>
<newline/>
<label name="model"/>
<field name="model"/>
<label name="keyword"/>
<field name="keyword"/>
</form>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Keywords">
<field name="action"/>
<field name="model"/>
<field name="keyword"/>
</tree>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- 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 string="Action">
<field name="name"/>
<field name="type"/>
</tree>
+40
View File
@@ -0,0 +1,40 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Report">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general">
<label name="model"/>
<field name="model"/>
<label name="report_name"/>
<field name="report_name"/>
<label name="icon"/>
<field name="icon"/>
<newline/>
<label name="report"/>
<field name="report"/>
<label name="report_content"/>
<field name="report_content"/>
<label name="template_extension"/>
<field name="template_extension"/>
<label name="extension"/>
<field name="extension"/>
<label name="style"/>
<field name="style"/>
<label name="direct_print"/>
<field name="direct_print"/>
<label name="email"/>
<field name="email" colspan="3"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- 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 string="Report xml">
<field name="name"/>
<field name="type"/>
<field name="model"/>
<field name="report_name"/>
</tree>
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="URL">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general">
<label name="url"/>
<field name="url"/>
<label name="icon"/>
<field name="icon"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="URL">
<field name="name"/>
<field name="type"/>
<field name="url"/>
</tree>
+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Wizard">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active" xexpand="0" width="100"/>
<notebook colspan="4">
<page string="General" id="general">
<label name="wiz_name"/>
<field name="wiz_name"/>
<label name="model"/>
<field name="model"/>
<label name="icon"/>
<field name="icon"/>
<newline/>
<label name="email"/>
<field name="email" colspan="3"/>
<label name="window"/>
<field name="window"/>
</page>
<page name="keywords">
<field name="keywords" colspan="4"/>
</page>
<page name="groups">
<field name="groups" colspan="4"/>
</page>
</notebook>
</form>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Wizard">
<field name="name"/>
<field name="type"/>
<field name="wiz_name"/>
</tree>
+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Attachments" col="2">
<group id="content" col="2" colspan="1">
<label name="resource"/>
<field name="resource"/>
<label name="name"/>
<group id="name_data" col="2" colspan="1">
<field name="name"/>
<field name="data" xexpand="0"/>
</group>
<label name="type"/>
<field name="type"/>
<label name="link"/>
<field name="link" widget="url"/>
</group>
<field name="data" widget="image" readonly="1"/>
<notebook>
<page name="description" col="1">
<field name="description"/>
</page>
</notebook>
<group id="last" col="4" colspan="2">
<label name="last_user"/>
<field name="last_user"/>
<label name="last_modification"/>
<field name="last_modification"/>
</group>
</form>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- 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 string="Attachments" editable="bottom">
<field name="resource"/>
<field name="name"/>
<field name="summary"/>
<field name="last_user"/>
<field name="last_modification"/>
<field name="data"/>
</tree>
+31
View File
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Scheduled Action">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active"/>
<label name="user"/>
<field name="user"/>
<label name="request_user"/>
<field name="request_user"/>
<label name="interval_number"/>
<field name="interval_number"/>
<label name="interval_type"/>
<field name="interval_type"/>
<label name="number_calls"/>
<field name="number_calls"/>
<label name="next_call"/>
<field name="next_call"/>
<label name="repeat_missed"/>
<field name="repeat_missed"/>
<separator string="Action to trigger" colspan="4"
id="action_trigger"/>
<label name="model"/>
<field name="model"/>
<label name="function"/>
<field name="function"/>
<label name="args"/>
<field name="args" colspan="3" widget="char"/>
</form>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- 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 string="Scheduled Actions">
<field name="next_call"/>
<field name="name"/>
<field name="user"/>
<field name="request_user"/>
<field name="interval_number"/>
<field name="interval_type"/>
<field name="number_calls"/>
<field name="active"/>
</tree>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Exports">
<label name="name"/>
<field name="name"/>
<label name="resource"/>
<field name="resource"/>
<field name="export_fields" colspan="4"/>
</form>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- 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 string="Exports">
<field name="name"/>
<field name="resource"/>
</tree>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Icon">
<label name="name"/>
<field name="name"/>
<label name="sequence"/>
<field name="sequence"/>
<label name="module"/>
<field name="module"/>
<label name="path"/>
<field name="path"/>
</form>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- 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 string="Icons" sequence="sequence">
<field name="name" icon="name"/>
<field name="module"/>
<field name="path"/>
<field name="sequence" tree_invisible="1"/>
</tree>
+25
View File
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Language" col="6">
<label name="name"/>
<field name="name"/>
<label name="code"/>
<field name="code"/>
<label name="active"/>
<field name="active"/>
<label name="direction"/>
<field name="direction"/>
<label name="translatable"/>
<field name="translatable"/>
<separator string="Date Formatting" colspan="6" id="date"/>
<label name="date"/>
<field name="date"/>
<separator string="Numbers Formatting" colspan="6" id="number"/>
<label name="grouping"/>
<field name="grouping"/>
<label name="thousands_sep"/>
<field name="thousands_sep"/>
<label name="decimal_point"/>
<field name="decimal_point"/>
</form>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- 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 string="Languages" editable="bottom">
<field name="name"/>
<field name="code"/>
<field name="direction"/>
<field name="translatable"/>
<field name="active"/>
</tree>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Access controls">
<label name="model"/>
<field name="model"/>
<label name="group"/>
<field name="group"/>
<newline/>
<label name="perm_read"/>
<field name="perm_read"/>
<label name="perm_write"/>
<field name="perm_write"/>
<label name="perm_create"/>
<field name="perm_create"/>
<label name="perm_delete"/>
<field name="perm_delete"/>
<separator name="description" colspan="4"/>
<field name="description" colspan="4"/>
</form>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- 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 string="Access controls">
<field name="perm_read"/>
<field name="perm_write"/>
<field name="perm_create"/>
<field name="perm_delete"/>
<field name="model"/>
<field name="group"/>
</tree>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Button">
<label name="model"/>
<field name="model"/>
<label name="name"/>
<field name="name"/>
<field name="groups" colspan="4"/>
</form>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- 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 string="Buttons">
<field name="model"/>
<field name="name"/>
</tree>
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Field Access">
<label name="field"/>
<field name="field"/>
<label name="group"/>
<field name="group"/>
<newline/>
<label name="perm_read"/>
<field name="perm_read"/>
<label name="perm_write"/>
<field name="perm_write"/>
<label name="perm_create"/>
<field name="perm_create"/>
<label name="perm_delete"/>
<field name="perm_delete"/>
<separator name="description" colspan="4"/>
<field name="description" colspan="4"/>
</form>
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- 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 string="Field Access">
<field name="perm_read"/>
<field name="perm_write"/>
<field name="perm_create"/>
<field name="perm_delete"/>
<field name="field"/>
<field name="group"/>
</tree>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Field">
<label name="name"/>
<field name="name"/>
<label name="model"/>
<field name="model" readonly="1"/>
<label name="ttype"/>
<field name="ttype"/>
<label name="relation"/>
<field name="relation"/>
<label name="field_description"/>
<field name="field_description" colspan="3"/>
<label name="help" yfill="1" xalign="0.0"/>
<field name="help" colspan="3"/>
<label name="module"/>
<field name="module"/>
</form>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- 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 string="Fields">
<field name="name"/>
<field name="model"/>
<field name="ttype"/>
<field name="relation"/>
<field name="field_description"/>
<field name="module"/>
</tree>
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Model Description" col="6">
<label name="name"/>
<field name="name"/>
<label name="model"/>
<field name="model"/>
<label name="module"/>
<field name="module"/>
<separator name="info" colspan="6"/>
<field name="info" colspan="6"/>
<field name="fields" colspan="6" readonly="1"/>
</form>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- 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 string="Model Description">
<field name="name"/>
<field name="model"/>
<field name="info"/>
<field name="module"/>
</tree>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Print Model Graph" col="2">
<label name="level"/>
<field name="level"/>
<label name="filter"/>
<field name="filter"/>
</form>
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<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>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Config Wizard Items" editable="bottom">
<field name="action"/>
<field name="sequence"/>
<field name="state"/>
</tree>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Configuration Wizard Next Step!" col="2">
<image name="tryton-dialog-information" xexpand="0"
xfill="0"/>
<field name="percentage" widget="progressbar"/>
</form>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Dependency">
<label name="module"/>
<field name="module"/>
<newline/>
<label name="name"/>
<field name="name"/>
<label name="state"/>
<field name="state"/>
</form>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Dependencies">
<field name="module"/>
<field name="name" expand="1"/>
<field name="state"/>
</tree>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<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>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<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>
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<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>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- 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 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>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Property">
<label name="field"/>
<field name="field" colspan="3"/>
<label name="value"/>
<field name="value" colspan="3"/>
<label name="res"/>
<field name="res" colspan="3"/>
</form>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Properties">
<field name="field"/>
<field name="value"/>
<field name="res"/>
</tree>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Test" col="6">
<label name="field"/>
<field name="field"/>
<label name="operator"/>
<field name="operator"/>
<label name="operand"/>
<field name="operand"/>
</form>
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Record rules" col="6">
<label name="model"/>
<field name="model"/>
<label name="global_p"/>
<field name="global_p"/>
<label name="default_p"/>
<field name="default_p"/>
<group col="4" colspan="6" id="perm">
<label name="perm_read"/>
<field name="perm_read"/>
<label name="perm_write"/>
<field name="perm_write"/>
<label name="perm_create"/>
<field name="perm_create"/>
<label name="perm_delete"/>
<field name="perm_delete"/>
</group>
<label name="name"/>
<field name="name" colspan="5"/>
<field name="rules" colspan="6"/>
<label string="The rule is satisfied if at least one test is True"
colspan="6" xalign="0.0" id="satisfied"/>
<label string="If there is no test defined, the rule is always satisfied if not global"
colspan="6" xalign="0.0" id="no_test"/>
</form>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- 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 string="Record rules">
<field name="perm_read"/>
<field name="perm_write"/>
<field name="perm_create"/>
<field name="perm_delete"/>
<field name="model"/>
<field name="name"/>
<field name="global_p"/>
<field name="default_p"/>
</tree>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Test">
<field name="field"/>
<field name="operator"/>
<field name="operand"/>
</tree>
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Sequences">
<label name="name"/>
<field name="name" colspan="3"/>
<label name="code"/>
<field name="code"/>
<label name="active"/>
<field name="active"/>
<label name="prefix"/>
<field name="prefix"/>
<label name="suffix"/>
<field name="suffix"/>
<label name="type"/>
<field name="type"/>
<group string="Incremental" id="incremental" colspan="4"
states="{'invisible': Not(In(Eval('type'), ['incremental']))}">
<label name="padding"/>
<field name="padding" />
<label name="number_increment"/>
<field name="number_increment"/>
<label name="number_next"/>
<field name="number_next"/>
</group>
<group string="Timestamp" id="timestamp" colspan="4"
states="{'invisible': Not(In(Eval('type'), ['decimal timestamp', 'hexadecimal timestamp']))}">
<label name="timestamp_rounding"/>
<field name="timestamp_rounding"/>
<label name="timestamp_offset"/>
<field name="timestamp_offset"/>
<label name="last_timestamp"/>
<field name="last_timestamp"/>
</group>
<separator string="Legend (Placeholders for prefix, suffix)" colspan="4"
id="legend"/>
<label string="Year:" id="label_year"/>
<label string="${year}" colspan="3" xalign="0.0" xexpand="1" id="year"/>
<label string="Month:" id="label_month"/>
<label string="${month}" colspan="3" xalign="0.0" xexpand="1" id="month"/>
<label string="Day:" id="label_day"/>
<label string="${day}" colspan="3" xalign="0.0" xexpand="1" id="day"/>
</form>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- 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 string="Sequences">
<field name="name"/>
<field name="code"/>
<field name="type"/>
<field name="active"/>
</tree>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Sequence Type">
<label name="name"/>
<field name="name"/>
<label name="code"/>
<field name="code" readonly="1"/>
</form>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- 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 string="Sequence Type">
<field name="name"/>
<field name="code"/>
</tree>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Clean Translations" col="2">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Clean Translations?" id="clean"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Clean Translations">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Clean Translations Succeed!" id="succeed"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Export Translation">
<label name="file"/>
<field name="file"/>
</form>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Export Translation">
<label name="language"/>
<field name="language" widget="selection"/>
<label name="module"/>
<field name="module" widget="selection"/>
</form>
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Translations" col="6">
<label name="name"/>
<field name="name"/>
<label name="type"/>
<field name="type"/>
<label name="res_id"/>
<field name="res_id"/>
<label name="fuzzy"/>
<field name="fuzzy"/>
<label name="lang"/>
<field name="lang"/>
<label name="module"/>
<field name="module"/>
<group col="2" colspan="6" yexpand="1" yfill="1" id="src_value">
<separator name="src"/>
<separator name="value"/>
<field name="src"/>
<field name="value" spell="Eval('lang')"/>
</group>
</form>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- 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 string="Translations" editable="bottom">
<field name="src"/>
<field name="value"/>
<field name="fuzzy"/>
<field name="name"/>
<field name="lang"/>
<field name="type"/>
<field name="res_id"/>
<field name="module"/>
</tree>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Set Report Translations" col="2">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Synchronize Report Translations?" id="synchronize"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Set Report Translations" col="2">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Set Translations Succeed!" id="succeed"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Synchronize Translations">
<label name="language"/>
<field name="language" widget="selection"/>
</form>
+31
View File
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Trigger">
<label name="name"/>
<field name="name" colspan="3"/>
<label name="model"/>
<field name="model"/>
<group colspan="2" col="10" id="checkboxes">
<label name="active"/>
<field name="active" xexpand="0"/>
<label name="on_time"/>
<field name="on_time" xexpand="0"/>
<label name="on_create"/>
<field name="on_create" xexpand="0"/>
<label name="on_write"/>
<field name="on_write" xexpand="0"/>
<label name="on_delete"/>
<field name="on_delete" xexpand="0"/>
</group>
<label name="condition"/>
<field name="condition" colspan="3"/>
<label name="limit_number"/>
<field name="limit_number"/>
<label name="minimum_delay"/>
<field name="minimum_delay" widget="float_time"/>
<label name="action_model"/>
<field name="action_model"/>
<label name="action_function"/>
<field name="action_function"/>
</form>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- 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 string="Triggers">
<field name="name"/>
<field name="model"/>
<field name="on_time"/>
<field name="on_create"/>
<field name="on_write"/>
<field name="on_delete"/>
<field name="active"/>
</tree>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Menu">
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active"/>
<label name="parent"/>
<field name="parent"/>
<label name="icon"/>
<field name="icon"/>
<label name="action"/>
<field name="action"/>
<label name="sequence"/>
<field name="sequence"/>
<label name="complete_name"/>
<field name="complete_name" colspan="3"/>
<field name="groups" colspan="4"/>
</form>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- 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 string="Menu">
<field name="complete_name" icon="icon" expand="1"/>
</tree>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- 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 string="Menu" keyword_open="1">
<field name="name" icon="icon" expand="1"/>
</tree>
+24
View File
@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="View">
<label name="model"/>
<field name="model"/>
<label name="type"/>
<field name="type"/>
<label name="inherit"/>
<field name="inherit"/>
<label name="domain"/>
<field name="domain"/>
<label name="priority"/>
<field name="priority"/>
<label name="field_childs"/>
<field name="field_childs"/>
<label name="module"/>
<field name="module"/>
<label name="name"/>
<field name="name"/>
<separator name="arch" colspan="4"/>
<field name="arch" colspan="4"/>
<button name="show" string="_Show" colspan="4"/>
</form>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- 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="priority"/>
<field name="model"/>
<field name="type"/>
<field name="inherit"/>
<field name="domain"/>
<field name="field_childs"/>
</tree>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- 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 string="Shortcuts" keyword_open="1" sequence="sequence">
<field name="name" expand="1"/>
</tree>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="Shortcut">
<label name="name"/>
<field name="name" colspan="3"/>
<label name="resource"/>
<field name="resource"/>
<label name="res_id"/>
<field name="res_id"/>
<label name="user_id"/>
<field name="user_id"/>
<label name="sequence"/>
<field name="sequence"/>
</form>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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 string="Shortcut">
<field name="name"/>
<field name="user_id"/>
<field name="sequence"/>
</tree>
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="View Tree Expanded State">
<label name="model"/>
<field name="model"/>
<label name="user"/>
<field name="user"/>
<label name="domain"/>
<field name="domain"/>
<label name="child_name" />
<field name="child_name" />
<separator name="nodes" colspan="4" />
<field name="nodes" colspan="4"/>
</form>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- 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 string="Views Tree Expanded State">
<field name="model"/>
<field name="domain"/>
<field name="user"/>
<field name="child_name"/>
</tree>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form string="View Tree Width">
<label name="model"/>
<field name="model"/>
<label name="field"/>
<field name="field"/>
<label name="user"/>
<field name="user"/>
<label name="width"/>
<field name="width"/>
</form>

Some files were not shown because too many files have changed in this diff Show More