Skip to content
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

[14.0][MIG] product_expiry_simple #tryagain #1271

Merged
merged 21 commits into from
Oct 12, 2023

Conversation

bealdav
Copy link
Member

@bealdav bealdav commented Apr 6, 2023

supersed #934

@bealdav bealdav force-pushed the 14-mig-product_expiry_simple-again branch from 6e72384 to f43b817 Compare April 6, 2023 21:25
@rousseldenis
Copy link
Contributor

/ocabot migration product_expiry_simple

@bealdav bealdav force-pushed the 14-mig-product_expiry_simple-again branch from 7e7c650 to ea59e8a Compare April 7, 2023 08:12
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
exclude: "product_expiry_simple,product_expiration_date"
name: test with OCB
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please @rousseldenis could you help to fix configuration to get it works
by comparison of https://github.com/OCA/server-tools/blob/14.0/.github/workflows/test.yml#L36
it seems ok, but in real not

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I saw your tries.

But, the problem here I think is the mutual exclusion in the manifest. I think the product_expiry module is installed in the first step as required by other modules.

I think you should exclude them also and put in the rebel modules: stock_mass_scrap, stock_move_quick_lot. Could you try ?

@sbidoul Any advice?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the error I see "product_expiration_date does not exist". But indeed this module does not exist in this repo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, madre mia, I shouldn't work after 22h, caramba !

@OCA-git-bot OCA-git-bot added this to the 14.0 milestone Apr 7, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Apr 7, 2023
57 tasks
@OCA-git-bot
Copy link
Contributor

The migration issue (#708) has been updated to reference the current pull request.
however, a previous pull request was referenced : #934.
Perhaps you should check that there is no duplicate work.
CC : @alexis-via

@rousseldenis
Copy link
Contributor

rousseldenis commented Apr 7, 2023

And @bealdav the question at 10.000 dollars. Isn't there a mean to make this (the module) configurable to allow it being installed along with product_expiry ?

@bealdav bealdav force-pushed the 14-mig-product_expiry_simple-again branch 3 times, most recently from 97e0efa to db1d6df Compare April 7, 2023 08:50
@bealdav
Copy link
Member Author

bealdav commented Apr 7, 2023

@rousseldenis I suppose you suggest a new module product_expiry_simple_but_not_so_easy_finally ?

@rousseldenis
Copy link
Contributor

rousseldenis commented Apr 7, 2023

@rousseldenis I suppose you suggest a new module product_expiry_simple_but_nor_so_easy_finally ?

No, I wanted to see if both can coexist. Maybe by hiding the standard fields when installing this

@bealdav
Copy link
Member Author

bealdav commented Apr 7, 2023

Yes, I understood, sorry for my joke ;-)
I think @alexis-via might be opposite to this option ?

But you're right, in this case runboat fails because of raise UserError(msg % (module.shortdesc, exclusion.exclusion_id.shortdesc)) odoo.exceptions.UserError: Modules "Product Expiry Simple" and "Products Expiration Date" are incompatible.

@bealdav
Copy link
Member Author

bealdav commented Apr 7, 2023

What are the options to make runboat works even if product_expiry_simple is not installed ?

@rousseldenis
Copy link
Contributor

What are the options to make runboat works even if product_expiry_simple is not installed ?

I think this is not possible as exclude key in manifest raises an Exception:

image

Maybe to have its own repo should be a solution

@sbidoul
Copy link
Member

sbidoul commented Apr 7, 2023

What are the options to make runboat works even if product_expiry_simple is not installed ?

At the moment, runboat does not support conflicting modules that prevent simultaneous installation of all modules in the repo. Suggestions are welcome in sbidoul/runboat#36

@bealdav
Copy link
Member Author

bealdav commented Apr 7, 2023

Probably, but runboat install addons of the whole repo with dependency.
Could we consider runboat install the whole repo except rebels ones ?

@bealdav bealdav marked this pull request as ready for review April 7, 2023 09:43
@alexis-via
Copy link
Contributor

I don't believe in a solution where product_expiry_simple depend on product_expiry ; I think it will bring more problems than solutions. The goal of product_expiry_simple is to have a easier/simpler drop-in replacement to product_expiry. Then we need to adapt the OCA tests system to allow the development of such alternative modules.

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 13, 2023
@alexis-via alexis-via force-pushed the 14-mig-product_expiry_simple-again branch from db1d6df to 51ee61c Compare August 14, 2023 12:48
@github-actions github-actions bot closed this Sep 17, 2023
@bealdav
Copy link
Member Author

bealdav commented Sep 18, 2023

@sbidoul @rousseldenis could you add no stale label to this PR. Thanks.

@rousseldenis rousseldenis added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Sep 18, 2023
@rousseldenis rousseldenis reopened this Sep 18, 2023
@rousseldenis
Copy link
Contributor

@bealdav Following sbidoul/runboat#36, is this needing the rebel module configuration ?

@bealdav
Copy link
Member Author

bealdav commented Sep 18, 2023

I suppose this not needed, then we can merge this PR as soon as there reviews. Could you approve the PR @rousseldenis ?

Copy link
Contributor

@florian-dacosta florian-dacosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bguillot
Copy link

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-1271-by-bguillot-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit bec93fb into OCA:14.0 Oct 12, 2023
16 of 18 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c52c818. Thanks a lot for contributing to OCA. ❤️

@francesco-ooops
Copy link
Contributor

@bguillot @bealdav @rousseldenis this has broken runboat for other PRs, eg: #1383

@bealdav bealdav deleted the 14-mig-product_expiry_simple-again branch October 16, 2023 13:53
@bealdav
Copy link
Member Author

bealdav commented Oct 16, 2023

Oops, I forgot sbidoul/runboat#36 to deal with rebel modules.

@rousseldenis
Copy link
Contributor

Oops, I forgot sbidoul/runboat#36 to deal with rebel modules.

Yes. This will prevent testing on runboat but not merges. We will need to manage it during OCA days. Remotely :-(

@francesco-ooops
Copy link
Contributor

@rousseldenis any plan to fix runboat for 14? thank you!

@francesco-ooops
Copy link
Contributor

@bealdav gentle reminder as we're out of runboat on v14 :)

@bealdav
Copy link
Member Author

bealdav commented Nov 13, 2023

The problem is that I don't really understand runboat machinery to make a pertinent PR. ;-(
Really sorry

@rousseldenis
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved merged 🎉 no stale Use this label to prevent the automated stale action from closing this PR/Issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.