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 Docs 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 Docs Configuration" version="7.0">
24 <field name="model_id"/>
25 <label for='gdocs_resource_id'/>
27 <field name='gdocs_resource_id'/>
29 This is the id of the template document, on google side. You can find it thanks to its URL:
31 <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>
32 <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>
33 <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>
34 <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>
38 <field name='name_template'/>
44 <record model='ir.actions.act_window' id='action_google_docs_users_config'>
45 <field name='name'>Models configuration</field>
46 <field name='res_model'>google.docs.config</field>
47 <field name='type'>ir.actions.act_window</field>
48 <field name='view_type'>form</field>
49 <field name='view_id' ref='view_google_docs_config_tree'/>
51 <menuitem name='Google Docs configuration' id='menu_gdocs_config' parent='base.menu_administration'/>
52 <menuitem name='Models configuration' id='menu_gdocs_model_config' parent='menu_gdocs_config' action='action_google_docs_users_config'/>