summaryrefslogtreecommitdiff
path: root/addons/google_docs/res_config_user_view.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/google_docs/res_config_user_view.xml')
-rw-r--r--addons/google_docs/res_config_user_view.xml160
1 files changed, 80 insertions, 80 deletions
diff --git a/addons/google_docs/res_config_user_view.xml b/addons/google_docs/res_config_user_view.xml
index f4fa96b1a51..abf394f052a 100644
--- a/addons/google_docs/res_config_user_view.xml
+++ b/addons/google_docs/res_config_user_view.xml
@@ -1,86 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
- <data>
+ <data>
- <!-- add google docs config field in user form -->
+ <!-- add google docs config field in user form -->
- <record model="ir.ui.view" id="view_google_docs_config_tree">
- <field name="name">google_docs.config.tree</field>
- <field name="model">google.docs.config</field>
- <field name="arch" type="xml">
- <tree string="Google Drive Configuration">
- <field name="name"/>
- <field name="model_id"/>
- </tree>
- </field>
- </record>
+ <record model="ir.ui.view" id="view_google_docs_config_tree">
+ <field name="name">google_docs.config.tree</field>
+ <field name="model">google.docs.config</field>
+ <field name="arch" type="xml">
+ <tree string="Google Drive Configuration">
+ <field name="name" />
+ <field name="model_id" />
+ </tree>
+ </field>
+ </record>
- <record model="ir.ui.view" id="view_google_docs_config_form">
- <field name="name">google_docs.config.form</field>
- <field name="model">google.docs.config</field>
- <field name="arch" type="xml">
- <form string="Google Drive Configuration" version="7.0">
- <group>
- <field name="name"/>
- <field name="model_id" on_change="onchange_model_id(model_id)"/>
- <label for='filter_id'/>
- <div>
- <field name='filter_id'/>
- <p class="oe_grey">
- <b>To create a new filter:</b><br/>
- - Go to the OpenERP document you want to filter. For instance, go to Opportunities and search on Sales Department.<br/>
- - In this "Search" view, select the option "Save Current Filter", enter the name (Ex: Sales Department)<br/>
- - If you select "Share with all users", link of google document in "More" options will appear for all users in opportunities of Sales Department.<br/>
- - If you don't select "Share with all users", link of google document in "More" options will not appear for other users in opportunities of Sales Department.<br/>
- - If filter is not specified, link of google document will appear in "More" option for all users for all opportunities.
- </p>
- </div>
- <field name='gdocs_template_url' placeholder="https://docs.google.com/document/d/1vOtpJK9scIQz6taD9tJRIETWbEw3fSiaQHArsJYcua4/edit" required="1"/>
- <field name='gdocs_resource_id' invisible="1"/>
- <label for='name_template'/>
- <div>
- <field name='name_template'/>
- <p class="oe_grey">
- The name of the attached document can use fixed or variable data. To distinguish between documents in
- Google Drive, use fixed words and fields. For instance, in the example above, if you wrote Agrolait_%%(name)s_Sales
- in the Google Drive name field, the document in your Google Drive and in OpenERP attachment will be named
- 'Agrolait_SO0001_Sales'.
- </p>
- </div>
- </group>
- </form>
- </field>
- </record>
+ <record model="ir.ui.view" id="view_google_docs_config_form">
+ <field name="name">google_docs.config.form</field>
+ <field name="model">google.docs.config</field>
+ <field name="arch" type="xml">
+ <form string="Google Drive Configuration" version="7.0">
+ <group>
+ <field name="name" />
+ <field name="model_id" on_change="onchange_model_id(model_id)" />
+ <label for='filter_id' />
+ <div>
+ <field name='filter_id' />
+ <p class="oe_grey">
+ <b>To create a new filter:</b><br/>
+ - Go to the OpenERP document you want to filter. For instance, go to Opportunities and search on Sales Department.<br/>
+ - In this "Search" view, select the option "Save Current Filter", enter the name (Ex: Sales Department)<br/>
+ - If you select "Share with all users", link of google document in "More" options will appear for all users in opportunities of Sales Department.<br/>
+ - If you don't select "Share with all users", link of google document in "More" options will not appear for other users in opportunities of Sales Department.<br/>
+ - If filter is not specified, link of google document will appear in "More" option for all users for all opportunities.
+ </p>
+ </div>
+ <field name='gdocs_template_url' placeholder="https://docs.google.com/document/d/1vOtpJK9scIQz6taD9tJRIETWbEw3fSiaQHArsJYcua4/edit" required="1" />
+ <field name='gdocs_resource_id' invisible="1" />
+ <label for='name_template' />
+ <div>
+ <field name='name_template' />
+ <p class="oe_grey">
+ The name of the attached document can use fixed or variable data. To distinguish between documents in
+ Google Drive, use fixed words and fields. For instance, in the example above, if you wrote Agrolait_%%(name)s_Sales
+ in the Google Drive name field, the document in your Google Drive and in OpenERP attachment will be named
+ 'Agrolait_SO0001_Sales'.
+ </p>
+ </div>
+ </group>
+ </form>
+ </field>
+ </record>
- <record model='ir.actions.act_window' id='action_google_docs_users_config'>
- <field name='name'>Google Drive Templates</field>
- <field name='res_model'>google.docs.config</field>
- <field name='type'>ir.actions.act_window</field>
- <field name='view_type'>form</field>
- <field name='view_id' ref='view_google_docs_config_tree'/>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">
- Click to add a new template.
- </p><p>
- Link your own google drive templates to any record of OpenERP. If you have really specific documents you want your collaborator fill in, e.g. Use a spreadsheet to control the quality of your product or review the delivery checklist for each order in a foreign country, ... Its very easy to manage them, link them to OpenERP and use them to collaborate with your employees.
- </p>
- </field>
- </record>
+ <record model='ir.actions.act_window' id='action_google_docs_users_config'>
+ <field name='name'>Google Drive Templates</field>
+ <field name='res_model'>google.docs.config</field>
+ <field name='type'>ir.actions.act_window</field>
+ <field name='view_type'>form</field>
+ <field name='view_id' ref='view_google_docs_config_tree' />
+ <field name="help" type="html">
+ <p class="oe_view_nocontent_create">
+ Click to add a new template.
+ </p>
+ <p>
+ Link your own google drive templates to any record of OpenERP. If you have really specific documents you want your collaborator fill in, e.g. Use a spreadsheet to control the quality of your product or review the delivery checklist for each order in a foreign country, ... Its very easy to manage them, link them to OpenERP and use them to collaborate with your employees.
+ </p>
+ </field>
+ </record>
- <record id="inherited_google_view_general_configuration" model="ir.ui.view">
- <field name="name">General Settings</field>
- <field name="model">base.config.settings</field>
- <field name="inherit_id" ref="base_setup.view_general_configuration"/>
- <field name="arch" type="xml">
- <xpath expr="//div[@name='google_docs']" position="after">
- <div attrs="{'invisible': [('module_google_docs','=',False)]}">
- <button type="action"
- name="%(google_docs.action_google_docs_users_config)d"
- string="Configure Template" class="oe_link"/>
- </div>
- </xpath>
- </field>
- </record>
+ <record id="inherited_google_view_general_configuration" model="ir.ui.view">
+ <field name="name">General Settings</field>
+ <field name="model">base.config.settings</field>
+ <field name="inherit_id" ref="base_setup.view_general_configuration" />
+ <field name="arch" type="xml">
+ <xpath expr="//div[@name='google_docs']" position="after">
+ <div attrs="{'invisible': [('module_google_docs','=',False)]}">
+ <button type="action" name="%(google_docs.action_google_docs_users_config)d" string="Configure Template" class="oe_link" />
+ </div>
+ </xpath>
+ </field>
+ </record>
<record model="ir.ui.view" id="view_company_inherit_form2">
<field name="name">res.company.form.inherit</field>
@@ -89,12 +88,13 @@
<field name="arch" type="xml">
<xpath expr="//group[@name='account_grp']" position="after">
<group string="Google Configuration">
- <field name='google_client_id'/>
+ <field name='google_client_id' />
</group>
</xpath>
</field>
</record>
- <menuitem name='Google Drive configuration' id='menu_gdocs_config' parent='base.menu_administration'/>
- <menuitem id='menu_gdocs_model_config' parent='menu_gdocs_config' action='action_google_docs_users_config'/>
- </data>
+
+ <menuitem name='Google Drive configuration' id='menu_gdocs_config' parent='base.menu_administration' />
+ <menuitem id='menu_gdocs_model_config' parent='menu_gdocs_config' action='action_google_docs_users_config' />
+ </data>
</openerp>