-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] mrp: force kit to be consumable product
Kits must be consumable products, they might never be in stock. Setting kits as storable products can create some issues if the user creates some reordering rules. Because kits might never be in stock, it's impossible to fullfil the quantity of a reordering rule: asking a mini/maxi quantity on a kit makes no sense. Odoo will continuously propose to order more to reach the quantity necessary for the kit, but will never reach the asked qty, as it's a kit, not a manufactured product. OPW-2448878 closes #65339 Signed-off-by: Steve Van Essche <svs-odoo@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3d34d58
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.
Hey @adwid ,
I don't know if this is the right channel at all. This commit is causing our company some issues though. We can now not make some kits that we want and can not save any edited kits that contain non-consumable parts. Would it not make more sense to block kits from reordering rules we already have many kits made that this new check breaks.
Do I have to find a way to bypass this check on our database or is there a resolution that can be made for all?
Thanks,
3d34d58
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.
Hello @Robert-Eliuk
This is intended. We want to prevent the creation of kits on storable products. Therefore, changing the product type to 'Storable' will raise an error if this product already has a kit BoM). Perhaps you can create a ticket so that the support team can help you reconfigure your database to meet this new requirement?
Have a nice day!