diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2019-07-17 14:17:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-17 14:17:57 +0200 |
| commit | cc62447a44c2cf4e2edaf8a1f6d94520e799ddd9 (patch) | |
| tree | a45f0984af5db1723fec83741b285ea92ab63598 /addons/sms/models/mail_thread.py | |
| parent | f6fdde96bddfedf8764cd8a73089e44340d476ae (diff) | |
| parent | a8767716cfd14abc7f87204d4d180811f663b648 (diff) | |
[MERGE] api.py: remove calls to @api.multi and deprecate its explicit usage
depends on https://github.com/odoo/odoo/pull/34556
closes odoo/odoo#34775
Signed-off-by: Adrian Torres <Elkasitu@users.noreply.github.com>
Diffstat (limited to 'addons/sms/models/mail_thread.py')
| -rw-r--r-- | addons/sms/models/mail_thread.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/sms/models/mail_thread.py b/addons/sms/models/mail_thread.py index a432d29a2d3..467a60127cd 100644 --- a/addons/sms/models/mail_thread.py +++ b/addons/sms/models/mail_thread.py @@ -17,7 +17,6 @@ class MailThread(models.AbstractModel): 'SMS Delivery error', compute='_compute_message_has_sms_error', search='_search_message_has_sms_error', help="If checked, some messages have a delivery error.") - @api.multi def _compute_message_has_sms_error(self): res = {} if self.ids: @@ -185,13 +184,11 @@ class MailThread(models.AbstractModel): **kwargs ) - @api.multi def _notify_thread(self, message, msg_vals=False, **kwargs): recipients_data = super(MailThread, self)._notify_thread(message, msg_vals=msg_vals, **kwargs) self._notify_record_by_sms(message, recipients_data, msg_vals=msg_vals, **kwargs) return recipients_data - @api.multi def _notify_record_by_sms(self, message, recipients_data, msg_vals=False, sms_numbers=None, sms_pid_to_number=None, check_existing=False, put_in_queue=False, **kwargs): |
