summaryrefslogtreecommitdiff
path: root/addons/google_drive/views
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2016-05-04 11:47:32 +0200
committerJérome Maes <jem@openerp.com>2016-05-31 09:09:22 +0200
commitb581e2004f0921f95c6ac10a64b76abf7a80f2e9 (patch)
tree21255925791f5fe0619377b64f54faaa96ccb612 /addons/google_drive/views
parent009578d5eefc99f15ca571f856b36be67bb09167 (diff)
[MOV] google_drive : move code to split file per model
Diffstat (limited to 'addons/google_drive/views')
-rw-r--r--addons/google_drive/views/google_drive_views.xml18
-rw-r--r--addons/google_drive/views/res_config_views.xml22
2 files changed, 22 insertions, 18 deletions
diff --git a/addons/google_drive/views/google_drive_views.xml b/addons/google_drive/views/google_drive_views.xml
index 411f5a27c39..894004ab0f5 100644
--- a/addons/google_drive/views/google_drive_views.xml
+++ b/addons/google_drive/views/google_drive_views.xml
@@ -68,24 +68,6 @@
</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='module_google_drive']" position="after">
- <div attrs="{'invisible': [('module_google_drive','=',False)]}">
- <div class="oe_inline">
- <field name="google_drive_uri" widget="url" text="Generate Google Authorization Code" class="oe_inline oe_bold"/>
- and paste it here
- <field name="google_drive_authorization_code" class="oe_inline" />
- </div>
- <button type="action" name="%(google_drive.action_google_drive_users_config)d" string="Configure your templates" class="oe_link" />
- </div>
- </xpath>
- </field>
- </record>
-
<menuitem name='Google Drive' id='menu_google_drive_config' parent='base.menu_administration' />
<menuitem id='menu_google_drive_model_config' parent='menu_google_drive_config' action='action_google_drive_users_config' />
</data>
diff --git a/addons/google_drive/views/res_config_views.xml b/addons/google_drive/views/res_config_views.xml
new file mode 100644
index 00000000000..0b9d5d6b450
--- /dev/null
+++ b/addons/google_drive/views/res_config_views.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <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='module_google_drive']" position="after">
+ <div attrs="{'invisible': [('module_google_drive','=',False)]}">
+ <div class="oe_inline">
+ <field name="google_drive_uri" widget="url" text="Generate Google Authorization Code" class="oe_inline oe_bold"/>
+ and paste it here
+ <field name="google_drive_authorization_code" class="oe_inline" />
+ </div>
+ <button type="action" name="%(google_drive.action_google_drive_users_config)d" string="Configure your templates" class="oe_link" />
+ </div>
+ </xpath>
+ </field>
+ </record>
+
+</odoo>