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
..
2015-02-23 15:39:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-10 15:32:20 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-19 09:11:21 +01:00
2015-01-26 16:36:51 +01:00
2015-01-06 14:20:38 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-23 14:29:01 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-07 17:57:28 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-20 12:44:11 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-05 12:01:56 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-11 15:20:17 +01:00
2015-02-18 13:00:39 +01:00
2015-02-20 16:08:10 +01:00
2015-02-18 11:51:07 +01:00
2015-02-05 14:14:59 +01:00
2015-01-26 16:36:51 +01:00
2015-02-09 16:53:38 +05:30
2015-01-26 16:36:51 +01:00
2015-02-03 18:19:40 +01:00
2015-02-20 17:25:30 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-19 09:11:21 +01:00
2015-02-19 09:11:21 +01:00
2015-02-17 11:10:10 +01:00
2015-02-10 14:24:54 +01:00
2015-01-12 16:17:12 +01:00
2014-08-26 21:40:18 +02:00
2015-01-12 16:17:12 +01:00
2014-08-26 21:40:18 +02:00
2015-02-10 13:24:59 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-23 11:11:27 +01:00
2015-02-18 11:51:07 +01:00
2015-01-06 14:20:38 +01:00
2015-01-21 12:24:57 +01:00
2015-01-07 17:57:28 +01:00
2014-08-26 21:40:18 +02:00
2015-02-03 19:35:56 +01:00
2015-01-21 15:36:54 +01:00
2015-01-07 17:57:28 +01:00
2014-12-01 15:42:51 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-02-18 12:11:51 +01:00
2015-01-23 11:11:27 +01:00
2015-01-06 14:20:38 +01:00
2014-11-19 17:49:12 +01:00
2015-02-17 17:00:56 +01:00
2015-02-18 11:51:07 +01:00
2015-02-09 11:48:57 +01:00
2014-09-08 19:04:25 +02:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2014-11-19 17:49:12 +01:00
2014-08-30 13:18:33 +02:00
2015-01-06 14:20:38 +01:00
2015-01-07 17:57:28 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2014-10-08 17:52:25 +02:00
2015-02-12 15:08:08 +01:00
2015-01-06 14:20:38 +01:00
2015-01-21 16:32:37 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-23 11:11:27 +01:00
2015-01-23 11:11:27 +01:00
2015-01-23 11:11:27 +01:00
2015-01-21 16:32:37 +01:00
2015-01-07 17:57:28 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-06 14:20:38 +01:00
2015-01-07 17:57:28 +01:00
2015-01-23 11:11:27 +01:00
2015-01-26 16:36:51 +01:00
2015-02-20 16:43:15 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-01-30 15:10:10 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:43:41 +01:00
2015-01-26 16:36:51 +01:00
2015-02-13 15:35:35 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-23 13:32:05 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-29 16:22:21 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-23 16:08:42 +01:00
2015-02-23 15:39:26 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 16:21:42 +01:00
2015-02-03 19:35:56 +01:00
2015-02-20 11:16:13 +01:00
2015-01-26 16:36:51 +01:00
2015-02-23 11:17:05 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-23 11:59:46 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-17 11:10:10 +01:00
2015-02-23 11:47:45 +01:00
2014-08-26 21:40:18 +02:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2014-09-08 19:04:25 +02:00
2015-01-26 16:36:51 +01:00
2015-01-26 16:36:51 +01:00
2015-02-24 14:01:34 +01:00
2015-02-20 16:22:15 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-06 10:53:15 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-20 14:55:07 +01:00
2015-02-20 14:55:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2014-12-15 13:46:29 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-01-26 16:36:51 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 14:21:42 +01:00
2015-02-18 16:21:42 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00
2015-02-18 11:51:07 +01:00