diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2019-12-02 10:34:00 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2019-12-04 13:06:56 +0000 |
| commit | 1d98547c0848395260bdb5a22ed87a30a15f436a (patch) | |
| tree | f60daddba7d624a2dc89edd47b118e301da94cba /addons/web/tests | |
| parent | e237ba26f7fbe687ff87ed5311549671d5682515 (diff) | |
[IMP] web: static inheritance: primary root node is the master node
Before this commit, when doing a primary inheritance
the root node of the resulting template was the one of the inherited template
after this commit, the root node of the resulting template is the one defined
on the inheriting template
closes odoo/odoo#39452
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web/tests')
| -rw-r--r-- | addons/web/tests/test_serving_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/tests/test_serving_base.py b/addons/web/tests/test_serving_base.py index 1279caf016a..a3ede96f507 100644 --- a/addons/web/tests/test_serving_base.py +++ b/addons/web/tests/test_serving_base.py @@ -694,11 +694,11 @@ class TestStaticInheritance(BaseCase): <div>At first I was afraid</div> <form>Inner Form</form> </form> - <t t-name="template_1_2" t-inherit="template_1_1" t-inherit-mode="primary"> + <form t-name="template_1_2" t-inherit="template_1_1" t-inherit-mode="primary"> <xpath expr="//form" position="replace"> <div>Form replacer</div> </xpath> - </t> + </form> </templates> """, } |
