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][IMP] product_state: move access to Sales + Inventory Manager #1124

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

aleuffre
Copy link
Contributor

@OCA-git-bot
Copy link
Contributor

Hi @emagdalenaC2i,
some modules you are maintaining are being modified, check this out!

@aleuffre aleuffre force-pushed the 14.0-product-state-security branch from f6f9c0f to 7b4eebb Compare July 28, 2022 11:36
@aleuffre
Copy link
Contributor Author

Had to modify the tests of a dependent module, as a result.

Copy link

@lfreeke lfreeke left a comment

Choose a reason for hiding this comment

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

Functional test 👍

@aleuffre aleuffre force-pushed the 14.0-product-state-security branch from 7b4eebb to e2a7a27 Compare December 13, 2022 09:14
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@aleuffre
Copy link
Contributor Author

aleuffre commented Jun 30, 2023

@OCA/product-maintainers sorry for the ping, but could you please merge this?

@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 Oct 29, 2023
@dreispt
Copy link
Member

dreispt commented Nov 6, 2023

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-1124-by-dreispt-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Nov 6, 2023
Signed-off-by dreispt
@OCA-git-bot
Copy link
Contributor

@dreispt your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-1124-by-dreispt-bump-patch.

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.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 12, 2023
@dreispt
Copy link
Member

dreispt commented Dec 22, 2023

Shouldn't this access be given to the Inventory Manager, rather than the Sales Manager?

@Kev-Roche
Copy link
Contributor

Shouldn't this access be given to the Inventory Manager, rather than the Sales Manager?

Indeed, it's a good question. Maybe the answer is both because some products with service type are not in stock and some projects are more focused on sale than stock (and opposite).

@aleuffre aleuffre force-pushed the 14.0-product-state-security branch from e2a7a27 to 612aff6 Compare January 15, 2024 09:44
@aleuffre
Copy link
Contributor Author

Shouldn't this access be given to the Inventory Manager, rather than the Sales Manager?

Indeed, it's a good question. Maybe the answer is both because some products with service type are not in stock and some projects are more focused on sale than stock (and opposite).

That was my reasoning as well. I've added both.

@aleuffre aleuffre changed the title [14.0][IMP] product_state: move access to Sales Manager [14.0][IMP] product_state: move access to Sales + Inventory Manager Jan 15, 2024
@legalsylvain
Copy link
Contributor

/ocabot merge patch

thanks for your contribution. Feel free to port this patch upstream, if necessary.

regards.

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-1124-by-legalsylvain-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit c5acd48 into OCA:14.0 Mar 11, 2024
9 checks passed
@OCA-git-bot
Copy link
Contributor

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

@natuan9
Copy link

natuan9 commented Nov 29, 2024

Hi @aleuffre , I noticed you moved access to Inventory Manager but didn’t add a dependency on the stock module. Doesn’t this cause any issues? I also see that the migration PRs don’t mention this either.
Currently, I’m migrating this module to version 18.0, and I’m uncertain whether I should add a dependency on the stock module. Could you clarify this for me?

@aleuffre aleuffre deleted the 14.0-product-state-security branch November 29, 2024 09:07
@aleuffre
Copy link
Contributor Author

Hi @aleuffre , I noticed you moved access to Inventory Manager but didn’t add a dependency on the stock module. Doesn’t this cause any issues? I also see that the migration PRs don’t mention this either. Currently, I’m migrating this module to version 18.0, and I’m uncertain whether I should add a dependency on the stock module. Could you clarify this for me?

I think you're correct. I thought there was an indirect dependency based on the module's existing dependencies, but it seems I was wrong (or maybe I just missed it at the time, I don't remember after almost a year). You should definitely add this fix when migrating. Thank you!

@simahawk
Copy link
Contributor

simahawk commented Dec 11, 2024

Guys, this change is breaking the module. The dependency on stock has not been declared.
EDIT: I've just seen the msg by @natuan9, sorry for the repetition :)

Sounds like it was never tested in isolation (= install only this module).
Also is arguable that we have to add a full dep on stock just to use its group.
IMO it should be done like this:

  • add a specific group in this module
  • add an auto-installable module that depends on stock that add this group as implied on inv manager

BTW even the dep on sale could be ripped out as it's needed only for the menu...

@simahawk
Copy link
Contributor

Hi @aleuffre , I noticed you moved access to Inventory Manager but didn’t add a dependency on the stock module. Doesn’t this cause any issues? I also see that the migration PRs don’t mention this either. Currently, I’m migrating this module to version 18.0, and I’m uncertain whether I should add a dependency on the stock module. Could you clarify this for me?

I think you're correct. I thought there was an indirect dependency based on the module's existing dependencies, but it seems I was wrong (or maybe I just missed it at the time, I don't remember after almost a year). You should definitely add this fix when migrating. Thank you!

I would proceed the other way around. We remove the need for the dep in v18 and you can backport the fix here 😉

@aleuffre
Copy link
Contributor Author

Apologies again for the mistake on my part.

I don't have a strong opinion on how to fix it either way, in fact I like your solution best @simahawk , but I've definitely seen small modules blocked to avoid multiplying the number of modules in OCA...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants