[IMP]Creating a tempalate for automatically creating a doc
[odoo/odoo.git] / addons / google_docs / res_config_user_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <!-- add google docs config field in user form -->
6
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"/>
14                 </tree>
15             </field>
16         </record>
17
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">
23                 <group>
24                     <field name="model_id"/>
25                     <field name='name_template'/>
26                     <label for='gdocs_resource_id'/>
27                     <div>
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:
31 <ul>
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>
36 </ul>
37                         </p> -->
38                     </div>
39                     
40                 </group>
41                 <button name="" string="Create a template" type="object" class="oe_highlight"/>
42                 </form>
43             </field>
44         </record>
45
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'/>
52         </record>
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'/>
55     </data>
56 </openerp>