summaryrefslogtreecommitdiff
path: root/addons/web_editor/models/ir_http.py
AgeCommit message (Collapse)Author
2018-04-11[FIX] http_routing: translate without websiteMartin Trigaux
web (tagged with `openerp-web`) translations are loaded in the backend, in `odoo.addons.web.controllers.main.WebClient.translation(mods=None, lang=None)` method (through `/web/webclient/translations` controller). In website, the controller `/website/translations` is called used, fetching the translations from modules with the (fragile) clause `name ilike 'website'` This commit fixes two bugs: 1. Install `website_sale`, activate discussion on products -> the chatter is not translated as the portal translations not loaded in the `/website/translations` controller 2. Install `helpdesk` but not `website`, go to portal view of a ticket -> the heldesk chatter is not translated as the `/website/translations` controller is not called (only provided by the website module) This patch implements a modular approach to translate the web resources of the right modules only. The controller /website/translation is moved to http_routing and each module override the new _get_translation_frontend_modules_domain method to adds its translatable module Closes #23618 Fixes #23610
2017-07-04[MERGE] forward port branch saas-11 up to 7b0a1e4031fChristophe Simonis
2017-06-30[FIX] web{site,_editor}: allow edit en_US fieldNicolas Lempereur
If the website default language is not en_US, qweb fields are not translatable in en_US (and thus can't be translated) because: - the code expected en_US to be the default language. - there was a error in website _dispatch opw-746776 closes #17939
2016-08-31[REF] registry: now mapping model name to model classRaphael Collet
2016-08-31[REF] openerp.http: make `request.context` consistent with `request.env.context`Raphael Collet
2016-08-03[MIG] web_editor: migrate to new apifwi-odoo
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website