itpp-labs / mail-addons

Odoo Mail Addons
https://itpp.dev
57 stars 191 forks source link

[10.0] mail_archives / web_base: error #152

Open grindtildeath opened 6 years ago

grindtildeath commented 6 years ago

I tried to use the mail_archives module on odoo v10, but there's a JS error appearing as soon as you click on archives :

TypeError: channel is undefined

http://localhost:8069/mail/static/src/js/client_action.js:408
Traceback:
set_channel@http://localhost:8069/mail/static/src/js/client_action.js:408:13
click .o_mail_chat_channel_item@http://localhost:8069/mail/static/src/js/client_action.js:92:13
proxy/<@http://localhost:8069/web/static/src/js/framework/widget.js:398:20
dispatch@http://localhost:8069/web/static/lib/jquery/jquery.js:4640:50
add/elemData.handle@http://localhost:8069/web/static/lib/jquery/jquery.js:4309:41

The reason for it, seems to come from web_base module, more exactly here : https://github.com/it-projects-llc/mail-addons/blob/11.0/mail_base/static/lib/base.js#L14

As odoo doesn't have this class in v10, the module won't be loaded although it gets installed.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/58918054-10-0-mail_archives-web_base-error?utm_campaign=plugin&utm_content=tracker%2F24901677&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F24901677&utm_medium=issues&utm_source=github).
grindtildeath commented 6 years ago

@yelizariev @Railia Is a fix planned on your side ?

yelizariev commented 6 years ago

@Railia try to reproduce the issue