diff options
| author | Olivier Dony <odo@openerp.com> | 2013-10-16 18:41:35 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2013-10-16 18:41:35 +0200 |
| commit | d72ccec81a3d98af44e7745fc376fd37580600c8 (patch) | |
| tree | 4dd0b9e4d234d48c85e4c19b2f8ed64af737a2ba | |
| parent | 23b209047bae1848c75cf9f8810f13b7803013f6 (diff) | |
[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
| -rw-r--r-- | addons/google_drive/google_drive.py | 6 |
1 files 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 = { |
