-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[15.0][MIG] base_sequence_option #2275
Conversation
@kittiu would you have a look here please? Alsowhat does that ci/runboat failing at the beginning mean? @gurneyalex ? |
I can not see any runbot log. Can you somehow try to push again. May be you can squash commits and try again. |
5374355
to
f6ffc28
Compare
Even force-push didn't help. I cannot see anything there as well. Maybe @gurneyalex would know? |
@kittiu can you see the tests being run? Because I cannot. The same happened to me at my local environments (14.0 and 15.o as well). |
runbot failing: please ignore, this is old story. Runboat seems to be running fine. |
To manually test on runboat:
|
@Rad0van Hello, do you still do this pr? |
Well what more can I do here? |
@Rad0van runbot is gone. may be you can up-to-date code and push it again. |
f6ffc28
to
9e08e5a
Compare
Done ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional Test with OCA/hr-expense#149
LGTM 👍
"security/sequence_option_security.xml", | ||
"views/sequence_option_view.xml", | ||
], | ||
"license": "LGPL-3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"license": "LGPL-3", | |
"license": "AGPL-3", |
This module should AGPL-3 ?
@@ -0,0 +1,22 @@ | |||
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th) | |||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). | |
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | |
All of license should agpl?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Saran440 according to https://www.odoo-community.org/resources/faq AGPLv3, LGPLv3 or GPLv3 are possible. Also: I am not in a position to just "change" license of existing module I'm migrating. Only authors can do I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, i will change it next PR.
cc: @kittiu
"author": "Ecosoft, Odoo Community Association (OCA)", | ||
"maintainers": ["kittiu"], | ||
"development_status": "Alpha", | ||
"website": "https://github.com/OCA/server-tools", | ||
"category": "Tools", | ||
"depends": ["base"], | ||
"external_dependencies": {"python": ["odoo_test_helper"]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to add this here, just add it to test-requirements.txt (or create it if it does not exist 😄 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, line removed. The test-requirements.txt
already contains the odoo_test_helper
so didn't do anything there. But it now causes pre-commit to fail. Not really sure I understand what's going on there.
@Rad0van Can you update your code again, please? |
@pedrobaeza hi, we tested this PR locally, and the pre-commit fail is due to wrong flake8 source url , that pointing to gitlab instead of github, can you make an OCABot rebase? |
/ocabot rebase |
Congratulations, PR rebased to 15.0. |
4ca2f18
to
c46165d
Compare
@Rad0van i have made a pr versus your branch to fix pre-commit fails |
@Rad0van @patrickt-oforce have done a PR from your branch and it's that Rad0van#2 if you merge that the pre-commit works fine |
But that removes line from requirements.txt from whole repository. Not really sure that's the way to go... |
we have done a local test and works fine |
hi @Rad0van this deletion of requirements is operated by pre-commit, not our initiative; if you want can check results at #2749 |
@Rad0van the pre-commit now works fine now you should squash the commit and we can ask the merge |
@etobella the pre-commit is now fix |
64379e5
to
0571ca8
Compare
964a6c1
to
9c842ec
Compare
Sorry for the commit/squash mess. Have tried removing that server-tools/test-requirements.txt Line 1 in 6d2ffc7
|
have no sense is done by pre-commit. |
Now it passes. I have squashed all the commits so proper order is maintained. I think the rule is 2 approvals and 5 (or 7) days. Someone with rights need to merge it. I do not have those rights... |
This PR has the |
@pedrobaeza I think now is ready to merge. |
@Saran440 i think your PR #2743 and mine can be close; this PR now seem fixed and all check has green mark. About this PR OCA/account-financial-tools#1635 can you try to push an empty commit to restart CI? |
Merging according reviews. /ocabot migration base_sequence_option |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 53b20ee. Thanks a lot for contributing to OCA. ❤️ |
This would be a standard migration if only... I cannot force Odoo to run tests for this. Not in 15.0, not in 14.0 Anybody's got any idea why? So this is sort of an blind attempt based only on fact it seems to work together with account_sequence_option that I plan to port next. Had to add return statement here:
That's pretty strange because such code exists in Odoo itself (didn't look long enough to find such thing in OCA). Also had to remove
string
attribute fromtree
element in view definition as per OCA/oca-addons-repo-template#76 It was nagging as well.Pylint was nagging me with
base_sequence_option/tests/common.py:91: [W8110(missing-return), CommonBaseSequenceOption.tearDownClass] Missing `return` (`super` is used) in method tearDownClass.
Any feedback welcome.