[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
This commit is contained in:
parent
23b209047b
commit
d72ccec81a
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue