Closed llacroix closed 1 year ago
Base: 94.71% // Head: 94.20% // Decreases project coverage by -0.51%
:warning:
Coverage data is based on head (
2eed23c
) compared to base (3a52eb7
). Patch coverage: 22.22% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
It's currently more or less a proof of concept to generate assets. It can be used to generate assets manually without having to hope for odoo to do it. In some ways, it can be used to force asset generation as Odoo will not generate assets if an attachment record is found to "fit" the use case. Even if the asset is wrong, odoo will not regenerate it.
With this tool we can generate assets locally and either push the file as an attachment that will be used instead of a wrongly created one. It can be useful to debug why an attachment isn't being generated properly.
Ideally, it would be fun to move the asset generator out of Odoo as much as possible. It would make it possible to remove the asset generation of Odoo which can speed up the loading time of pages as it doesn't have to check if the version is correct or if it can generate it. Generation of assets can be done by deployment scripts. In a real use case, people don't install/uninstall modules that often that assets need to be constantly regenerated.