-
-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update our tooling to support Odoo 18.0 #628
Comments
I'd rather add another tool on https://github.com/OCA/repo-maintainer as we need to add a branch to all repos of https://github.com/OCA/repo-maintainer-conf. I could have a look at that. Then we can trash |
I have assigned to me the OCB first part and the OpenUpgrade one. |
same for this -> we must use the repo-maintainer. I'll include an option in the new tool mentioned above. @pedrobaeza I take over this one if ok for you |
Hi @sbidoul. Thanks for enumerating all the tasks to do. |
@simahawk OK @legalsylvain I predict this year the date will be more constrained, as they still have some big things to merge (for example, company dependent fields to JSON - let's hope it enters this version -), but maybe they still create the branch on advance even if not completed as a favor to the community. |
@legalsylvain it's true some tasks can't be done yet. PRs can be prepared, though. But more importantly there are the improvements mentioned at the beginning that can be worked on if we want to address them. |
hmm the repo-maintainer will bootstrap the branch w/o that tool. We have to find a different way likely. I'll have a look, thanks for the pointer. |
I had a look at your work but I think we don't need it anymore. Please see #541 (comment) |
I have added a point for the migration guide. |
@pedrobaeza was that not the third item already? |
Ouch, I didn't see it... |
Hello, I was wondering if I could contribute somehow, perhaps one of the improvements mentioned above. I looked through OCA/oca-ci#10 and I think I could do that, if nobody's working on it currently. |
@PabloEForgeFlow cool, that is most welcome. Just checking if @rousseldenis was not planning to do the same. |
@PabloEForgeFlow You can do it as the solution proposed is simpler than mine. Ping me if you want review. |
Great I'll be working on it then, thanks @sbidoul @rousseldenis. |
Hey @sbidoul @rousseldenis , I've implemented a first version of OCA/oca-ci#10 in OCA/oca-ci#77, let me know what you think. |
The 18.0 branch is already there: https://github.com/odoo/odoo/tree/18.0 so this unblocks certain things. |
@pedrobaeza let me know when the OCB 18 branch is ready. I'll then get a few things moving. The big thing where help is most welcome is the repo template (modernize the linters, check the pylint-odoo configs, etc). |
Already completed:
|
The updated OCB sync script is up and running. |
Wrt the python version, I suspect Odoo will continue to support 3.10, so we'll continue to use that version in ci and require python >= 3.10 in our wheels. To be confirmed when they create the official docker image. postgres, 9.6 is not supported anymore by Odoo 18. Basic tests pass with the oldest supported version, which is postgres 12. |
The oca-ci images are ready. |
FYI in js side |
@PabloEForgeFlow and @ArnauCForgeFlow can help. But will need some guidance. They are coming to OCA Days. |
From the setup.py of odoo 18, it requires python >= 3.10.
If the goal is to use the oldest supported version, and count on the forward compatibility of postgresql, then yes. |
First Odoo 18 PR here: OCA/server-env#204 There are a couple of pre-commit issues to sort out. |
oca-github-bot updated and restarted. |
click-odoo-makepot works, although there are issues in the click-odoo and click-odoo-contrib test suite. |
The migration issues have been created. |
One interesting thing to add to the linters is this one: OCA/odoo-module-migrator#98 |
When will the 18.0 branches be created? |
Soon. You can follow progress in https://github.com/OCA/repo-maintainer-conf |
Coming in few mins as long as the build on https://github.com/OCA/repo-maintainer-conf/actions gets green :) |
Uhm, if no tests, is there a warning on Odoo? |
It's definetely due to no tests being run and checklog-odoo, which is enabled by default on v18. |
We use the following entry in
edit: thanks for clarifying @PabloEForgeFlow - use the statement above with caution since you may want to know if no tests are being run |
There are probably some other warnings which we want to ignore. As the feature is tested on more repos we might want to add a generic |
I don't recommend using template for warnings (except the one for 0 tests). Usually, they really means something that should be fixed. That should be done case by case depending the repository |
But, @EdgarRetes, the question is maybe, why aren't there any tests ? 😅 |
also got an issue with i guess oca_checklog_odoo, for expected test errors do we need to silence the logger during the test? is there sample code to assert the error messages in a mock logger? with self.assertRaises(...):
... should in my case produce an error in the log. https://github.com/OCA/server-auth/actions/runs/11253916523/job/31290197142?pr=705
|
@ap-wtioit you can try |
@sbidoul thanks, that works perfectly. |
@EdgarRetes the same here OCA/server-ux#950 Really need a test here @rousseldenis ? |
Yes, a dummy test is maybe a workaround. |
Yes I can make a dummy test on my side, but is it an expected for other case ? |
Which other case? I would say it can be good to say: Hey, nothing to test here, so the add of dummy test is IMHO a convenient solution |
It works on my PR, thanks |
Hey there, Any timeline of publishing OCA modules for Odoo 18.0 on Odoo Apps? Some of our products depend on OCA modules, so it blocks us from publishing them... Will be happy to help if needed. Thanks! |
def _check_recursion(self, parent=None): I found this warning while migrating to v18, maybe it should be included in the Wiki (?) |
Yes, it can be added. What is the replacement for such method? |
"_has_cycle()" instead of "_check_recursion()" |
odoo/odoo@728d9f8 is replaced by boolean |
Improvements we may want to do
See #582 for links to similar PRs for 17.0.
The text was updated successfully, but these errors were encountered: