Commit 6a7f050
committed
[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 odoo#92
Related: odoo/upgrade#6086
Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>1 parent 54e0abe commit 6a7f050
File tree
3 files changed
+1
-1
lines changed- src
- spreadsheet/tests
- util/spreadsheet
3 files changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
File renamed without changes.
File renamed without changes.
0 commit comments