odoo/openerp
Goffin Simon cbb51610ee [FIX] ir.ui.view: qweb translations: allow looking up translation in parent template
- Translations lookup normally uses the namespace of the current
QWeb template, after merging all inherited views.
But when a QWeb template is "cloned" by a child view using
inheritance with `primary` mode, the translations are more
likely to exist for the original (parent) template, and would not
be found when using only the "child" namespace.
This patch adds support for looking up each translation
also in the parent namespace in this case, if none was found
for the child template in the first place.

- ir.translation's _get_source() now supports a list of res_id
to search for, in addition to a single res_id

- Also moved the logic of routes /website/customize_template_get
and /website/get_view_translations to the ir.ui.view model where
it belongs.

opw: 615241

Closes #5325
2015-02-24 14:01:34 +01:00
..
addons [FIX] ir.ui.view: qweb translations: allow looking up translation in parent template 2015-02-24 14:01:34 +01:00
cli [IMP] let scaffold render files ending by .rst and .html 2015-01-19 14:25:36 +01:00
conf [MERGE] openerp.pooler is deprecated. 2013-03-27 17:40:45 +01:00
modules [TYPO] modules: better safe than sorry 2015-02-23 20:15:57 +01:00
osv [FIX] fields: fix `_column.new()` by relying on `to_field_args()` 2015-02-23 15:50:09 +01:00
report [MERGE] forward port of branch saas-3 up to b3f3daf 2015-01-23 13:28:17 +01:00
service [FIX] dbmanager: backup allow pg_dump custom dump to be larger than diskspace 2015-01-19 02:42:34 +01:00
tests [FIX] test phantomjs discard stderr 2015-01-09 01:21:42 +01:00
tools [FIX] translate: possibility to disable translation of view nodes 2015-02-20 17:22:39 +01:00
workflow [IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR) 2014-08-05 12:26:28 +02:00
PKG-INFO [REM] netrpc: KILL EVERYBODY 2013-02-21 13:18:25 +01:00
__init__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
api.py [FIX] api: environment recomputation 2015-02-12 14:57:31 +01:00
exceptions.py [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
fields.py [FIX] fields: fix `_column.new()` by relying on `to_field_args()` 2015-02-23 15:50:09 +01:00
http.py [IMP] http: don't warn when using HTTPException results 2015-01-29 16:15:36 +01:00
import_xml.rng [MERGE] ir-ui-view split active and show_customize 2014-08-31 16:56:44 +02:00
loglevels.py [REF] logging: removed pseudo log-level TEST. 2013-03-26 16:58:44 +01:00
models.py [FIX] models: initialize `_fields` attribute. 2015-02-23 18:33:26 +01:00
netsvc.py [FIX] logging: dont use color in windows cmd 2015-01-09 01:45:41 +01:00
pooler.py [IMP] registry: avoid every direct access registry.db, and rename attribute as registry._db 2014-04-09 15:35:15 +02:00
release.py [REL] Odoo 8.0 2014-09-18 12:11:18 +02:00
sql_db.py [MERGE] forward port of branch saas-3 up to 30674c3 2014-12-23 14:03:38 +01:00