diff options
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 { |
