[MIG] database_cleanup: Migration to 14.0 - #1990
Conversation
9e1a0e4 to
007979e
Compare
|
@StephaneMangin you need to check the tests |
|
For the record, #1885 is now finalized. |
Thanks @StefanRijnhart , i'll check that as soon as i can ^^ |
|
Hi @StephaneMangin, please let me know if you will continue migrating this one, or if you might need help to do it so I can take over the following week. |
Hi @gustavovalverde, thanx for the reminder. I'm a little bit busy right now. If it's urgent for you, let me know. I probably will take it apart in the following week to finish the work. |
007979e to
202949d
Compare
|
Hi, FYI: I've tested the PR and noticed that "read" permission only on the model is not enough for the users to create the various purge wizards. |
6d48a3b to
e9c2ea0
Compare
1d3fe3a to
ed0bc91
Compare
413b82c to
10de2e0
Compare
leemannd
left a comment
There was a problem hiding this comment.
Functionally does the work.
If there are missing points I think it should be mentioned and we could maybe consider merging it?
|
The model created to test the model cleaning behavior fails. Issue append while loading the module after the test have been succeded : Recreating the model in tearDown does the job ... but why ? |
10de2e0 to
6a24fbd
Compare
Currently translated at 100.0% (74 of 74 strings) Translation: server-tools-12.0/server-tools-12.0-database_cleanup Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-database_cleanup/pt_BR/
Currently translated at 51.4% (38 of 74 strings) Translation: server-tools-12.0/server-tools-12.0-database_cleanup Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-database_cleanup/zh_CN/
Currently translated at 100.0% (74 of 74 strings) Translation: server-tools-12.0/server-tools-12.0-database_cleanup Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-database_cleanup/zh_CN/
ad7211d to
b68617c
Compare
|
is it ready to merge? |
|
/ocabot merge nobump |
|
This PR looks fantastic, let's merge it! |
|
@dreispt your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-1990-by-dreispt-bump-nobump. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
No not yet. We have an issue with the way the module drop tables, the relation finder and management is not efficient. This issue must be addressed before merging. |
ok, thanks for the information |
After local test, everything is fine, even with |
I think at this time, Travis is not important but is important runboat, because Travis will be decommissioned. |
I made an errore runbot change to runboat, but travis not change |
|
Note runboat does not run tests. In this case the test failure is likely to persist when we move to GitHub action. |
|
are there any news about the travis error? |
|
|
||
|
|
||
| # Use post_install to get all models loaded more info: odoo/odoo#13458 | ||
| @tagged("post_install", "-at_install") |
There was a problem hiding this comment.
I think something may be wrong here.
Note that the normal tests fail before the post tests get started
But the database_cleanup test should be part of the post installation tests, because otherwise, not all modules are loaded (eg. base_custom_info is loaded as number 53) before database_cleanup is loaded (as number 22, so earlier) and database_cleanup will try to delete tables belonging to not-yet-loaded modules instead of deprecated modules and you get these errors.
So, I suspect that with Odoo 14.0, @tagged perhaps does not propagate anymore to child tests and we should define it on all tests specifically.
|
@StephaneMangin any chance to fix and rebase pr? Thx |
| <field name="state">code</field> | ||
| <field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_menu" /> | ||
| <field name="code"> | ||
| action = env.get('cleanup.purge.wizard').get_wizard_action() |
There was a problem hiding this comment.
| action = env.get('cleanup.purge.wizard').get_wizard_action() | |
| action = env.get('cleanup.purge.wizard.menu').get_wizard_action() |
the .menu part is missing.
|
Superseeded by #2390 |
Comments and changes from #1885 are taken in account.