Search for unused view XML recursively

This commit is contained in:
Cédric Krier committed 2026-02-27 13:30:52 +01:00
1 parent 72c809e6f6
commit 4d0070784b
1 file changed
+2 -1
+2 -1
View File
@@ -437,7 +437,8 @@ class ModuleTestCase(_DBTestCase):
directory = find_dir(
self.module,
subdir='modules' if self.module not in {'ir', 'res'} else '')
view_files = set(glob.glob(os.path.join(directory, 'view', '*.xml')))
view_files = set(glob.glob(
os.path.join(directory, 'view', '**/*.xml'), recursive=True))
for view in views:
if view.name:
view_files.discard(os.path.join(