Tuesday, July 29, 2025
1 change · master
Features or functions removed from Odoo
An old internal test that was not part of the official test process has been removed because it no longer works with recent testing changes. This has no expected impact on customers or day-to-day product behavior, but helps avoid confusion for developers running tests manually.
Original PR description
`test_parse_inline_template` has never been run "officially" since it's not in a module's test directory, which is where the built-in test harness looks things up. Miraculously it actually worked…
`test_parse_inline_template` has never been run "officially" since it's not in a module's test directory, which is where the built-in test harness looks things up. Miraculously it actually worked still if one managed to get it run (via some other test harness), however with #212315 it's now broken: - #212315 unconditionally looks up the `test_tags` during `__init__` - way back when test tags were added in b356b190338e3ee032b9e3a7f670f76468965006, a default value for test tags was only set on classes defined somewhere within the `odoo.addons` namespace, this was kept on all subsequent updates (even after the `module` was removed from the test tags and moved to a separate attribute) As a result, when running `test_parse_inline_template` the initialisation of each test now fails with an `AttributeError` right in the `__init__`. Can't be arsed to move the test to a place where it's run, and clearly nobody's cared in the last 4 years. Forward-Port-Of: odoo/odoo#220832 Forward-Port-Of: odoo/odoo#220768