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>