summaryrefslogtreecommitdiff
path: root/doc/_extensions/github_link.py
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2017-03-21 16:22:58 +0100
committerGoffin Simon <sig@odoo.com>2017-03-21 17:02:59 +0100
commit5761b9a388edf0cd5d92ab280f4b78c6e84867aa (patch)
tree5ff52fb086b4f6b76606703df2cbd30ea7a66199 /doc/_extensions/github_link.py
parent1600216c1da0fcbb7c91819b103242fa69337c67 (diff)
[FIX] http: setup_lang in Safari
When not logged in the webstie on Safari and clicking on "Have a Question? Chat with us", it creates a mail.channel from get_mail_channel and it also creates a translation. But with Safari, the accept_languages is set with the value 'fr-fr', and this value was set in the context as the lang='fr_fr'. So when the translation was created, a bad insert query was raised in sql because the lang didn't exist in the res.lang table. When a translation is created, the function _get_languages checked that the language is in the table. So it was impossible to use the chatter when the user is not logged. NB: interseting functions to see: -setup_lang in odoo/http.py -_dispatch in addons/website/models/ir_http.py -get_mail_channel in addons/im_livechat/models/im_livechat_channel.py opw:716519
Diffstat (limited to 'doc/_extensions/github_link.py')
0 files changed, 0 insertions, 0 deletions