Skip to content
Snippets Groups Projects
Commit 946d245c authored by Jigar Patel's avatar Jigar Patel Committed by Jérome Maes
Browse files

[FIX] website_livechat: Pass correct name of class in super method to solve...

[FIX] website_livechat: Pass correct name of class in super method to solve traceback on publish button
parent 68dbacac
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ class ImLivechatChannel(models.Model):
@api.v7
# TODO : when mixin in new api.v8, change this !
def _website_url(self, cr, uid, ids, field_name, arg, context=None):
res = super(im_livechat_channel, self)._website_url(cr, uid, ids, field_name, arg, context=context)
res = super(ImLivechatChannel, self)._website_url(cr, uid, ids, field_name, arg, context=context)
for channel in self.browse(cr, uid, ids, context=context):
res[channel.id] = "/livechat/channel/%s" % (slug(channel),)
return res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment