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/website_livechat/models | |
| 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/website_livechat/models')
| -rw-r--r-- | addons/website_livechat/models/im_livechat.py | 1 | ||||
| -rw-r--r-- | addons/website_livechat/models/website.py | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/addons/website_livechat/models/im_livechat.py b/addons/website_livechat/models/im_livechat.py index 6dc57e0845b..282966c90cc 100644 --- a/addons/website_livechat/models/im_livechat.py +++ b/addons/website_livechat/models/im_livechat.py @@ -11,7 +11,6 @@ class ImLivechatChannel(models.Model): _name = 'im_livechat.channel' _inherit = ['im_livechat.channel', 'website.published.mixin'] - @api.multi def _compute_website_url(self): super(ImLivechatChannel, self)._compute_website_url() for channel in self: diff --git a/addons/website_livechat/models/website.py b/addons/website_livechat/models/website.py index c52dc9a09f0..d842c97a445 100644 --- a/addons/website_livechat/models/website.py +++ b/addons/website_livechat/models/website.py @@ -10,7 +10,6 @@ class Website(models.Model): channel_id = fields.Many2one('im_livechat.channel', string='Website Live Chat Channel') - @api.multi def get_livechat_channel_info(self): """ Get the livechat info dict (button text, channel name, ...) for the livechat channel of the current website. |
