summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-05-22 14:17:21 +0200
committerThibault Delavallée <tde@odoo.com>2017-08-08 14:24:59 +0200
commit3148925c43242842e096daedf037417566f2f95e (patch)
tree2069cccaa5d557b72c91c30881d94af273c7254f /addons/web/static/src/js/views/basic/basic_controller.js
parent014b5c9f7c2f0a5c9741569525364ff9cd6cb4cc (diff)
[MOV] website, http_routing: compute language data in http_routing.ir_http instead of website
ir_http override in website manage languages through methods or attributes directly defined on website model. Those methods are get_languages method and default_lang_code attribute. In order to be able to have a translation layer independent of website we have to have access to this data without depending on website record. This commit solves this by adding class methods on ir_http override located in http_routing. Basic implementation comes directly from website default methods _active_languages and _default_language. Website overrides those methods in order to be based on website values defined through language_ids and default_lang_id for available languages and default language. Website behavior is therefore untouched whereas http_routing implements a basic default behavior. This commit updates ir_http code in website to use those methods and ease next commits which will move parts of that code.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions