Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MOV] spreadsheet: move spreadsheet utils to util folder
`upgrade-util/src/spreadsheet` clashes with `upgrade/spreadsheet`. Both are merged in `odoo.upgrade.spreadsheet` from the python point of view. When importing `from odoo.upgrade.util.spreadsheet`, python follows the path and stops at the first package package (first folder with `__init__.py`) Currently, if you add tests in `upgrade/spreadsheet/tests`, they are ignored (because of `upgrade-util/spreadsheet/__init__.py`). If you remove the `__init__.py` file, it works. With this commit, we move all spreadsheet utils (more are coming) into the `util` folder, which allows to safely have an `__init__.py` file. Tests are kept in `upgrade-util/spreadsheet`, but without any `__init__.py` file. Note that moving those files is a breaking change and it's not retro-compatible. However, those spreadsheet utils have only been merged a few weeks ago. They are most probably not used outside our internal upgrade repo. closes #92 Related: odoo/upgrade#6086 Signed-off-by: Christophe Simonis (chs) <[email protected]>
- Loading branch information