summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorRajesh Prajapati (OpenERP) <rpr@tinyerp.com>2013-02-28 12:41:18 +0530
committerRajesh Prajapati (OpenERP) <rpr@tinyerp.com>2013-02-28 12:41:18 +0530
commit11b1401b1f792f024602fd72492ebf5fed005dce (patch)
tree7c46a28adac674831433b6d8027782d7182d4996 /addons/google_docs/google_docs.py
parent15140b69f78a354cd081699808589c90bce7eaed (diff)
parentfba7d98e59823e76ff7da344ece85104407041ed (diff)
[merge]: merge with parent branch
bzr revid: rpr@tinyerp.com-20130228070148-yzy68ch0jwn9f976 bzr revid: rpr@tinyerp.com-20130228071118-14g1icbwjn42k5j5
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py20
1 files changed, 8 insertions, 12 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index 9aaa5b41b19..82cd80635ee 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -177,18 +177,14 @@ class config(osv.osv):
_columns = {
'model_id': fields.many2one('ir.model', 'Model', required=True),
-# 'gdocs_resource_id': fields.char('Google Resource ID to Use as Template', size=64, help='''
-#This is the id of the template document, on google side. You can find it thanks to its URL:
-#*for a text document with url like `https://docs.google.com/a/openerp.com/document/d/123456789/edit`, the ID is `document:123456789`
-#*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`
-#*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`
-#*for a drawing document with url like `https://docs.google.com/a/openerp.com/drawings/d/123456789/edit`, the ID is `drawings:123456789`
-#...
-#''', required=True),
- 'gdocs_resource_id': fields.selection([('document', 'Document'),
- ('spreadsheet', 'Spreadsheet'),
- ('presentation', 'Presentation')], 'Type of Drive as template',
- required=True, help="""Select here the type of drive you want as a template."""),
+ 'gdocs_resource_id': fields.char('Google Resource ID to Use as Template', size=64, help='''
+This is the id of the template document, on google side. You can find it thanks to its URL:
+*for a text document with url like `https://docs.google.com/a/openerp.com/document/d/123456789/edit`, the ID is `document:123456789`
+*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`
+*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`
+*for a drawing document with url like `https://docs.google.com/a/openerp.com/drawings/d/123456789/edit`, the ID is `drawings:123456789`
+...
+''', required=True),
'name_template': fields.char('Google Drive Name Pattern', size=64, help='Choose how the new google drive will be named, on google side. Eg. gdoc_%(field_name)s', required=True),
}