summaryrefslogtreecommitdiff
path: root/odoo/addons/base/models/res_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/addons/base/models/res_config.py')
-rw-r--r--odoo/addons/base/models/res_config.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/odoo/addons/base/models/res_config.py b/odoo/addons/base/models/res_config.py
index b8617a09d5a..44d7082e8a3 100644
--- a/odoo/addons/base/models/res_config.py
+++ b/odoo/addons/base/models/res_config.py
@@ -53,12 +53,10 @@ class ResConfigConfigurable(models.TransientModel):
_name = 'res.config'
_description = 'Config'
- @api.multi
def start(self):
# pylint: disable=next-method-called
return self.next()
- @api.multi
def next(self):
"""
Reload the settings page
@@ -68,7 +66,6 @@ class ResConfigConfigurable(models.TransientModel):
'tag': 'reload',
}
- @api.multi
def execute(self):
""" Method called when the user clicks on the ``Next`` button.
@@ -81,7 +78,6 @@ class ResConfigConfigurable(models.TransientModel):
raise NotImplementedError(
'Configuration items need to implement execute')
- @api.multi
def cancel(self):
""" Method called when the user click on the ``Skip`` button.
@@ -96,7 +92,6 @@ class ResConfigConfigurable(models.TransientModel):
"""
pass
- @api.multi
def action_next(self):
""" Action handler for the ``next`` event.
@@ -108,7 +103,6 @@ class ResConfigConfigurable(models.TransientModel):
# pylint: disable=next-method-called
return self.execute() or self.next()
- @api.multi
def action_skip(self):
""" Action handler for the ``skip`` event.
@@ -120,7 +114,6 @@ class ResConfigConfigurable(models.TransientModel):
# pylint: disable=next-method-called
return self.cancel() or self.next()
- @api.multi
def action_cancel(self):
""" Action handler for the ``cancel`` event. That event isn't
generated by the res.config.view.base inheritable view, the
@@ -316,7 +309,6 @@ class ResConfigInstaller(models.TransientModel, ResConfigModuleInstallationMixin
_('\n\nThis addon is already installed on your system'))
return fields
- @api.multi
def execute(self):
to_install = list(self.modules_to_install())
_logger.info('Selecting addons %s to install', to_install)
@@ -383,7 +375,6 @@ class ResConfigSettings(models.TransientModel, ResConfigModuleInstallationMixin)
_name = 'res.config.settings'
_description = 'Config Settings'
- @api.multi
def copy(self, values):
raise UserError(_("Cannot duplicate configuration!"), "")
@@ -412,7 +403,6 @@ class ResConfigSettings(models.TransientModel, ResConfigModuleInstallationMixin)
ret_val['arch'] = etree.tostring(doc, encoding='unicode')
return ret_val
- @api.multi
def onchange_module(self, field_value, module_name):
ModuleSudo = self.env['ir.module.module'].sudo()
modules = ModuleSudo.search(
@@ -609,7 +599,6 @@ class ResConfigSettings(models.TransientModel, ResConfigModuleInstallationMixin)
if method.startswith('set_') and method is not 'set_values':
_logger.warning(_('Methods that start with `set_` are deprecated. Override `set_values` instead (Method %s)') % method)
- @api.multi
def execute(self):
self.ensure_one()
if not self.env.is_admin():
@@ -653,7 +642,6 @@ class ResConfigSettings(models.TransientModel, ResConfigModuleInstallationMixin)
'tag': 'reload',
}
- @api.multi
def cancel(self):
# ignore the current record, and send the action to reopen the view
actions = self.env['ir.actions.act_window'].search([('res_model', '=', self._name)], limit=1)
@@ -661,7 +649,6 @@ class ResConfigSettings(models.TransientModel, ResConfigModuleInstallationMixin)
return actions.read()[0]
return {}
- @api.multi
def name_get(self):
""" Override name_get method to return an appropriate configuration wizard
name, and not the generated name."""