diff options
Diffstat (limited to 'addons/google_drive')
| -rw-r--r-- | addons/google_drive/google_drive.py | 2 | ||||
| -rw-r--r-- | addons/google_drive/static/src/xml/gdocs.xml | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/addons/google_drive/google_drive.py b/addons/google_drive/google_drive.py index 779b0231540..036b815648b 100644 --- a/addons/google_drive/google_drive.py +++ b/addons/google_drive/google_drive.py @@ -40,7 +40,7 @@ class config(osv.Model): config = self.browse(cr, SUPERUSER_ID, config_id, context=context) model = config.model_id filter_name = config.filter_id and config.filter_id.name or False - record = self.pool.get(model.model).read(cr, uid, res_id, [], context=context) + record = self.pool.get(model.model).read(cr, uid, [res_id], context=context)[0] record.update({'model': model.name, 'filter': filter_name}) name_gdocs = config.name_template try: diff --git a/addons/google_drive/static/src/xml/gdocs.xml b/addons/google_drive/static/src/xml/gdocs.xml deleted file mode 100644 index 0c8d9c3b01f..00000000000 --- a/addons/google_drive/static/src/xml/gdocs.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- vim:fdl=1: ---> -<templates id="template" xml:space="preserve"> -<t t-name="AddGoogleDocumentItem"> - <li class="oe_sidebar_add_google_doc"><span><b>Add Google Doc...</b></span></li> -</t> -</templates> |
