From d72ccec81a3d98af44e7745fc376fd37580600c8 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 16 Oct 2013 18:41:35 +0200 Subject: [PATCH] [FIX] google_drive: base.config.settings must be a TransientModel Making it a real Model causes access right errors, as it has no ACLs. + cleanup other model declarations bzr revid: odo@openerp.com-20131016164135-uf3gxe0p1i6h3xyq --- addons/google_drive/google_drive.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/google_drive/google_drive.py b/addons/google_drive/google_drive.py index 8da706c5ffa..4aced472ce0 100644 --- a/addons/google_drive/google_drive.py +++ b/addons/google_drive/google_drive.py @@ -31,7 +31,7 @@ import re _logger = logging.getLogger(__name__) -class config(osv.osv): +class config(osv.Model): _name = 'google.drive.config' _description = "Google Drive templates config" @@ -207,10 +207,8 @@ class config(osv.osv): def get_google_scope(self): return 'https://www.googleapis.com/auth/drive' -config() - -class base_config_settings(osv.osv): +class base_config_settings(osv.TransientModel): _inherit = "base.config.settings" _columns = {