2012-03-05 14:50:01 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
2012-03-05 16:11:15 +00:00
2012-03-05 14:50:01 +00:00
<!-- add google docs config field in user form -->
2012-03-05 16:11:15 +00:00
2012-03-28 08:29:48 +00:00
<record model= "ir.ui.view" id= "view_google_docs_config_tree" >
2012-03-19 10:31:32 +00:00
<field name= "name" > google_docs.config.tree</field>
2012-03-12 14:41:31 +00:00
<field name= "model" > google.docs.config</field>
2012-03-05 14:50:01 +00:00
<field name= "arch" type= "xml" >
2012-10-11 09:19:50 +00:00
<tree string= "Google Docs Configuration" >
2012-03-30 14:51:49 +00:00
<field name= "model_id" />
2012-10-11 09:19:50 +00:00
<field name= "name_template" />
</tree>
2012-03-05 14:50:01 +00:00
</field>
</record>
2012-03-19 10:31:32 +00:00
2012-03-28 08:29:48 +00:00
<record model= "ir.ui.view" id= "view_google_docs_config_form" >
2012-03-19 10:31:32 +00:00
<field name= "name" > google_docs.config.form</field>
<field name= "model" > google.docs.config</field>
<field name= "arch" type= "xml" >
2012-10-11 09:19:50 +00:00
<form string= "Google Docs Configuration" version= "7.0" >
2012-10-10 20:47:33 +00:00
<group >
<field name= "model_id" />
<label for= 'gdocs_resource_id' />
<div >
<field name= 'gdocs_resource_id' />
<p class= "oe_grey" >
This is the id of the template document, on google side. You can find it thanks to its URL:
<ul >
<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>
<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>
<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>
<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>
2012-10-11 08:29:13 +00:00
</ul>
2012-10-10 20:47:33 +00:00
</p>
</div>
<field name= 'name_template' />
</group>
2012-10-11 09:19:50 +00:00
</form>
2012-03-19 10:31:32 +00:00
</field>
</record>
<record model= 'ir.actions.act_window' id= 'action_google_docs_users_config' >
2012-03-14 11:14:02 +00:00
<field name= 'name' > Models configuration</field>
2012-03-14 10:42:05 +00:00
<field name= 'res_model' > google.docs.config</field>
<field name= 'type' > ir.actions.act_window</field>
2012-03-14 11:14:02 +00:00
<field name= 'view_type' > form</field>
2012-03-30 14:51:49 +00:00
<field name= 'view_id' ref= 'view_google_docs_config_tree' />
2012-03-14 10:42:05 +00:00
</record>
2012-03-14 11:14:02 +00:00
<menuitem name= 'Google Docs configuration' id= 'menu_gdocs_config' parent= 'base.menu_administration' />
2012-03-19 10:31:32 +00:00
<menuitem name= 'Models configuration' id= 'menu_gdocs_model_config' parent= 'menu_gdocs_config' action= 'action_google_docs_users_config' />
2012-03-05 14:50:01 +00:00
</data>
</openerp>