[FIX] base: explicitly decorate api method
This commit is contained in:
@@ -8,7 +8,7 @@ import uuid
|
||||
import datetime
|
||||
import logging
|
||||
|
||||
from openerp import SUPERUSER_ID
|
||||
from openerp import SUPERUSER_ID, api
|
||||
from openerp.osv import osv, fields
|
||||
from openerp.tools import misc, config, ormcache, mute_logger
|
||||
|
||||
@@ -41,6 +41,7 @@ class ir_config_parameter(osv.osv):
|
||||
('key_uniq', 'unique (key)', 'Key must be unique.')
|
||||
]
|
||||
|
||||
@api.cr
|
||||
@mute_logger('openerp.addons.base.ir.ir_config_parameter')
|
||||
def init(self, cr, force=False):
|
||||
"""
|
||||
@@ -118,4 +119,4 @@ class ir_config_parameter(osv.osv):
|
||||
|
||||
def unlink(self, cr, uid, ids, context=None):
|
||||
self._get_param.clear_cache(self)
|
||||
return super(ir_config_parameter, self).unlink(cr, uid, ids, context=context)
|
||||
return super(ir_config_parameter, self).unlink(cr, uid, ids, context=context)
|
||||
|
||||
Reference in New Issue
Block a user