1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- add google docs config field in user form -->
7 <record model="ir.ui.view" id="view_google_docs_config_tree">
8 <field name="name">google_docs.config.tree</field>
9 <field name="model">google.docs.config</field>
10 <field name="arch" type="xml">
11 <tree string="Google Drive Configuration">
12 <field name="model_id"/>
13 <field name="name_template"/>
18 <record model="ir.ui.view" id="view_google_docs_config_form">
19 <field name="name">google_docs.config.form</field>
20 <field name="model">google.docs.config</field>
21 <field name="arch" type="xml">
22 <form string="Google Drive Configuration" version="7.0">
24 <field name="model_id"/>
25 <field name='name_template'/>
26 <label for='gdocs_resource_id'/>
28 <field name='gdocs_resource_id'/>
29 <!-- <p class="oe_grey">
30 This is the id of the template document, on google side. You can find it thanks to its URL:
32 <li>for a text document with url like `https://docs.google.com/a/openerp.com/document/d/123456789/edit`, the ID is `document:123456789`</li>
33 <li>for a spreadsheet document with url like `https://docs.google.com/a/openerp.com/spreadsheet/ccc?key=123456789#gid=0`, the ID is `spreadsheet:123456789`</li>
34 <li>for a presentation (slide show) document with url like `https://docs.google.com/a/openerp.com/presentation/d/123456789/edit#slide=id.p`, the ID is `presentation:123456789`</li>
35 <li>for a drawing document with url like `https://docs.google.com/a/openerp.com/drawings/d/123456789/edit`, the ID is `drawings:123456789`</li>
41 <button name="" string="Create a template" type="object" class="oe_highlight"/>
46 <record model='ir.actions.act_window' id='action_google_docs_users_config'>
47 <field name='name'>Models configuration</field>
48 <field name='res_model'>google.docs.config</field>
49 <field name='type'>ir.actions.act_window</field>
50 <field name='view_type'>form</field>
51 <field name='view_id' ref='view_google_docs_config_tree'/>
53 <menuitem name='Google Drive configuration' id='menu_gdocs_config' parent='document.menu_document_doc'/>
54 <menuitem name='Models configuration' id='menu_gdocs_model_config' parent='menu_gdocs_config' action='action_google_docs_users_config'/>