Files
odoo_source/odoo/addons/test_assetsbundle
Samuel Degueldre e060539e77 [FIX] base: avoid crashing when removing empty list from bundle
Previously, having a remove directive in a bundle that didn't match any
file of that bundle's type would raise an error, saying that the path
we're attempting to remove could not be located in the current bundle.

This basically breaks the remove directive inside of xml/js-css hybrid
bundles, because getting the assets path in xml-mode will cause all
remove directives that only target css/js files to fail and vice versa.

This commit fixes that by only raising an error when there were files
that match the extensions currently enabled, and those files were not
found in the bundle.

closes odoo/odoo#75790

Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-09-01 08:26:06 +00:00
..
2021-03-31 13:57:17 +02:00
2021-03-31 13:57:17 +02:00