summaryrefslogtreecommitdiff
path: root/addons/document
diff options
context:
space:
mode:
Diffstat (limited to 'addons/document')
-rw-r--r--addons/document/document_view.xml242
1 files changed, 124 insertions, 118 deletions
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml
index e8ce8be4f2d..b2b844c0591 100644
--- a/addons/document/document_view.xml
+++ b/addons/document/document_view.xml
@@ -7,17 +7,19 @@
<field name="model">document.storage</field>
<field name="type">form</field>
<field name="arch" type="xml">
- <form string="Storage Media">
- <group col="4">
- <field name="name" colspan="4"/>
- <field name="type"/>
- <field name="user_id"/>
- <field name="online"/>
- <field name="readonly"/>
- </group>
- <group attrs="{'invisible':[('type','in',['db', 'db64'])]}">
- <field name="path"/>
- </group>
+ <form string="Storage Media" version="7.0">
+ <sheet layout="auto">
+ <group col="4">
+ <field name="name" colspan="4"/>
+ <field name="type"/>
+ <field name="user_id"/>
+ <field name="online"/>
+ <field name="readonly"/>
+ </group>
+ <group attrs="{'invisible':[('type','in',['db', 'db64'])]}">
+ <field name="path"/>
+ </group>
+ </sheet>
</form>
</field>
</record>
@@ -69,81 +71,83 @@
<field name="model">document.directory</field>
<field name="type">form</field>
<field name="arch" type="xml">
- <form string="Directories" col="4">
- <group col="4">
- <field name="name"/>
- <field name="parent_id"/>
- <field name="storage_id"/>
- <field name="user_id"/>
- <field name="company_id" groups="base.group_multi_company" widget="selection"/>
- </group>
- <notebook colspan="4">
- <page string="Definition">
- <group string="Directory Type" colspan="4">
- <field name="type"/>
- </group>
- <group col="4" attrs="{'invisible': [('type','!=','ressource')]}">
- <field name="ressource_type_id" on_change="onchange_content_id(ressource_type_id)"
- attrs="{'required': [('type','=','ressource')] }"/>
- <newline/>
- <field name="resource_field" domain="[('model_id','=',ressource_type_id), ('ttype', 'in', ('char', 'selection', 'date', 'datetime'))]"/>
- <field name="ressource_tree"/>
- <newline/>
- <field name="domain" attrs="{'required': [('type','=','ressource')], 'readonly': [('type','=','static')]}"/>
- </group>
+ <form string="Directories" col="4" version="7.0">
+ <sheet layout="auto">
<group col="4">
- <field name="ressource_parent_type_id"/>
- <field name="ressource_id" select="2" readonly="1"/>
- </group>
- <group col="2" attrs="{'invisible': [('type','!=','ressource'),('ressource_parent_type_id','=',False)]}">
- <field name="resource_find_all"/>
+ <field name="name"/>
+ <field name="parent_id"/>
+ <field name="storage_id"/>
+ <field name="user_id"/>
+ <field name="company_id" groups="base.group_multi_company" widget="selection"/>
</group>
-
- </page>
- <page string="Generated Files" groups="base.group_no_one">
- <label colspan="4" string="For each entry here, virtual files will appear in this folder." />
- <field name="content_ids" nolabel="1" colspan="4" >
- <form string="Contents">
- <group col="4">
+ <notebook colspan="4">
+ <page string="Definition">
+ <group string="Directory Type" colspan="4">
+ <field name="type"/>
+ </group>
+ <group col="4" attrs="{'invisible': [('type','!=','ressource')]}">
+ <field name="ressource_type_id" on_change="onchange_content_id(ressource_type_id)"
+ attrs="{'required': [('type','=','ressource')] }"/>
+ <newline/>
+ <field name="resource_field" domain="[('model_id','=',ressource_type_id), ('ttype', 'in', ('char', 'selection', 'date', 'datetime'))]"/>
+ <field name="ressource_tree"/>
+ <newline/>
+ <field name="domain" attrs="{'required': [('type','=','ressource')], 'readonly': [('type','=','static')]}"/>
+ </group>
+ <group col="4">
+ <field name="ressource_parent_type_id"/>
+ <field name="ressource_id" select="2" readonly="1"/>
+ </group>
+ <group col="2" attrs="{'invisible': [('type','!=','ressource'),('ressource_parent_type_id','=',False)]}">
+ <field name="resource_find_all"/>
+ </group>
+
+ </page>
+ <page string="Generated Files" groups="base.group_no_one">
+ <label colspan="4" string="For each entry here, virtual files will appear in this folder." />
+ <field name="content_ids" nolabel="1" colspan="4" >
+ <form string="Contents">
+ <group col="4">
+ <field name="name"/>
+ <field name="sequence"/>
+ <field name="prefix"/>
+ <field name="suffix"/>
+ <field name="extension"/>
+ <field name="include_name"/>
+ <separator string="PDF Report" colspan="4"/>
+ <field name="report_id" domain="[('model_id','=',parent.ressource_type_id)]"/>
+ </group>
+ </form>
+ <tree string="Contents">
+ <field name="sequence" string="Seq."/>
<field name="name"/>
- <field name="sequence"/>
- <field name="prefix"/>
<field name="suffix"/>
<field name="extension"/>
- <field name="include_name"/>
- <separator string="PDF Report" colspan="4"/>
- <field name="report_id" domain="[('model_id','=',parent.ressource_type_id)]"/>
- </group>
- </form>
- <tree string="Contents">
- <field name="sequence" string="Seq."/>
- <field name="name"/>
- <field name="suffix"/>
- <field name="extension"/>
- </tree>
- </field>
- </page>
- <page string="Dynamic context" groups="base.group_no_one">
- <label colspan="4" string="Define words in the context, for all child directories and files" />
- <field name="dctx_ids" nolabel="1" colspan="4">
- <tree string="Fields" editable="bottom">
- <field name="field"/>
- <field name="expr"/>
- </tree>
- <form string="Fields">
- <group col="4">
+ </tree>
+ </field>
+ </page>
+ <page string="Dynamic context" groups="base.group_no_one">
+ <label colspan="4" string="Define words in the context, for all child directories and files" />
+ <field name="dctx_ids" nolabel="1" colspan="4">
+ <tree string="Fields" editable="bottom">
<field name="field"/>
<field name="expr"/>
- </group>
- </form>
- </field>
- </page>
- <page string="Security">
- <label colspan="4" string="Only members of these groups will have access to this directory and its files." />
- <label colspan="4" string="These groups, however, do NOT apply to children directories, which must define their own groups." />
- <field name="group_ids" colspan="4" nolabel="1"/>
- </page>
- </notebook>
+ </tree>
+ <form string="Fields">
+ <group col="4">
+ <field name="field"/>
+ <field name="expr"/>
+ </group>
+ </form>
+ </field>
+ </page>
+ <page string="Security">
+ <label colspan="4" string="Only members of these groups will have access to this directory and its files." />
+ <label colspan="4" string="These groups, however, do NOT apply to children directories, which must define their own groups." />
+ <field name="group_ids" colspan="4" nolabel="1"/>
+ </page>
+ </notebook>
+ </sheet>
</form>
</field>
</record>
@@ -238,47 +242,49 @@
<field name="priority" eval="1"/>
<field name="type">form</field>
<field name="arch" type="xml">
- <form string="Documents">
- <group col="4">
- <field name="name"/>
- <field name="parent_id"/>
- <field name="user_id"/>
- <field name="company_id" groups="base.group_multi_company" widget="selection"/>
- </group>
- <notebook colspan="4">
- <page string="Attachment">
- <group>
- <group string="Data">
- <field name="type"/>
- <newline />
- <field name="datas" filename="datas_fname" attrs="{'invisible':[('type','=','url')]}"/>
- <field name="datas_fname" attrs="{'invisible':[('type','=','url')]}"/>
- <field name="url" widget="url" attrs="{'invisible':[('type','=','binary')]}"/>
- </group>
+ <form string="Documents" version="7.0">
+ <sheet layout="auto">
+ <group col="4">
+ <field name="name"/>
+ <field name="parent_id"/>
+ <field name="user_id"/>
+ <field name="company_id" groups="base.group_multi_company" widget="selection"/>
+ </group>
+ <notebook colspan="4">
+ <page string="Attachment">
<group>
- <field name="res_id" invisible="True"/>
- <field name="res_model" readonly="True" invisible="True" attrs="{'invisible': [('res_id','=',0)]}"/>
- <field name="res_name" readonly="1" attrs="{'invisible': [('res_id','=',0)]}"/>
- <separator string="Related to" colspan="2"/>
- <field name="partner_id"/>
- </group>
- <group groups="base.group_no_one" string="Created">
- <field name="create_uid" readonly="1"/>
- <field name="create_date" readonly="1"/>
- </group>
- <group groups="base.group_no_one" string="Modified">
- <field name="write_uid" readonly="1"/>
- <field name="write_date" readonly="1"/>
+ <group string="Data">
+ <field name="type"/>
+ <newline />
+ <field name="datas" filename="datas_fname" attrs="{'invisible':[('type','=','url')]}"/>
+ <field name="datas_fname" attrs="{'invisible':[('type','=','url')]}"/>
+ <field name="url" widget="url" attrs="{'invisible':[('type','=','binary')]}"/>
+ </group>
+ <group>
+ <field name="res_id" invisible="True"/>
+ <field name="res_model" readonly="True" invisible="True" attrs="{'invisible': [('res_id','=',0)]}"/>
+ <field name="res_name" readonly="1" attrs="{'invisible': [('res_id','=',0)]}"/>
+ <separator string="Related to" colspan="2"/>
+ <field name="partner_id"/>
+ </group>
+ <group groups="base.group_no_one" string="Created">
+ <field name="create_uid" readonly="1"/>
+ <field name="create_date" readonly="1"/>
+ </group>
+ <group groups="base.group_no_one" string="Modified">
+ <field name="write_uid" readonly="1"/>
+ <field name="write_date" readonly="1"/>
+ </group>
</group>
- </group>
- </page>
- <page string="Indexed Content - experimental" groups="base.group_no_one">
- <field name="index_content"/>
- </page>
- <page string="Notes">
- <field name="description"/>
- </page>
- </notebook>
+ </page>
+ <page string="Indexed Content - experimental" groups="base.group_no_one">
+ <field name="index_content"/>
+ </page>
+ <page string="Notes">
+ <field name="description"/>
+ </page>
+ </notebook>
+ </sheet>
</form>
</field>
</record>