[IMP] google_docs : google docs configuration added to general settings

bzr revid: rpr@tinyerp.com-20130228083647-xrglmy1sfha0d3ep
This commit is contained in:
Rajesh Prajapati (OpenERP) 2013-02-28 14:06:47 +05:30
parent 11b1401b1f
commit b992b715e5
3 changed files with 27 additions and 0 deletions

View File

@ -36,6 +36,8 @@ class base_config_settings(osv.osv_memory):
help="""Enable the public part of openerp, openerp becomes a public website."""),
'module_auth_oauth': fields.boolean('Use external authentication providers, sign in with google, facebook, ...'),
'module_base_import': fields.boolean("Allow users to import data from CSV files"),
'module_google_docs': fields.boolean('Attach a google document to any record',
help="""Install the google docs module."""),
}
def open_company(self, cr, uid, ids, context=None):

View File

@ -81,6 +81,15 @@
</div>
</div>
</group>
<group>
<label for="id" string="Google Drive"/>
<div name="google_drive">
<div name="google_docs">
<field name="module_google_docs" class="oe_inline"/>
<label for="module_google_docs"/>
</div>
</div>
</group>
</form>
</field>
</record>

View File

@ -48,6 +48,22 @@ This is the id of the template document, on google side. You can find it thanks
<field name='view_type'>form</field>
<field name='view_id' ref='view_google_docs_config_tree'/>
</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>
<menuitem name='Google Drive configuration' id='menu_gdocs_config' parent='base.menu_administration'/>
<menuitem name='Models configuration' id='menu_gdocs_model_config' parent='menu_gdocs_config' action='action_google_docs_users_config'/>
</data>