# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import TransactionCase class TestViews(TransactionCase): def test_infinite_inherit_loop(self): # Creates an infinite loop: A t-call B and A inherit from B View = self.env['ir.ui.view'] first_view = View.create({ 'name': 'Test View 1', 'type': 'qweb', 'arch': '