diff options
| author | Adrian Torres <adt@odoo.com> | 2019-07-10 14:59:37 +0200 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2019-07-17 14:13:12 +0200 |
| commit | 4b38cc6590abcb58a0ca102a06063eb3db7ac1f4 (patch) | |
| tree | cfd11739fc6b4c0cb4b23b54cc6badad4bf5c55e /addons/sms/wizard | |
| parent | f6fdde96bddfedf8764cd8a73089e44340d476ae (diff) | |
[REM] *: calls to @api.multi
Multi is the default api for methods, it is not necessary to explicitly
decorate methods with it, adds clutter and most people use it because
they see that the rest of the code uses it.
Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
Diffstat (limited to 'addons/sms/wizard')
| -rw-r--r-- | addons/sms/wizard/sms_cancel.py | 2 | ||||
| -rw-r--r-- | addons/sms/wizard/sms_resend.py | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/addons/sms/wizard/sms_cancel.py b/addons/sms/wizard/sms_cancel.py index 2b27b237920..945b4d8d843 100644 --- a/addons/sms/wizard/sms_cancel.py +++ b/addons/sms/wizard/sms_cancel.py @@ -11,13 +11,11 @@ class SMSCancel(models.TransientModel): model = fields.Char(string='Model', required=True) help_message = fields.Char(string='Help message', compute='_compute_help_message') - @api.multi @api.depends('model') def _compute_help_message(self): for wizard in self: wizard.help_message = _("Are you sure you want to discard %s SMS delivery failures. You won't be able to re-send these SMS later!") % (wizard._context.get('unread_counter')) - @api.multi def action_cancel(self): # TDE CHECK: delete pending SMS author_id = self.env.user.partner_id.id diff --git a/addons/sms/wizard/sms_resend.py b/addons/sms/wizard/sms_resend.py index 10ae893fab8..aad00074c67 100644 --- a/addons/sms/wizard/sms_resend.py +++ b/addons/sms/wizard/sms_resend.py @@ -61,7 +61,6 @@ class SMSResend(models.TransientModel): record.check_access_rights('read') record.check_access_rule('read') - @api.multi def action_resend(self): self._check_access() @@ -98,7 +97,6 @@ class SMSResend(models.TransientModel): self.mail_message_id._notify_sms_update() return {'type': 'ir.actions.act_window_close'} - @api.multi def action_cancel(self): self._check_access() @@ -107,7 +105,6 @@ class SMSResend(models.TransientModel): self.mail_message_id._notify_sms_update() return {'type': 'ir.actions.act_window_close'} - @api.multi def action_buy_credits(self): url = self.env['iap.account'].get_credits_url(service_name='sms') return { |
