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

[17.0][MIG] stock_product_pack: Migration to 17.0 #157

Closed
wants to merge 30 commits into from

Conversation

bruno-zanotti
Copy link
Contributor

No description provided.

@bruno-zanotti bruno-zanotti mentioned this pull request Dec 18, 2023
4 tasks
@bruno-zanotti bruno-zanotti marked this pull request as ready for review December 18, 2023 21:07
@bruno-zanotti bruno-zanotti force-pushed the 17.0-mig-stock_product_pack branch from 67d8da1 to 5198f7b Compare December 18, 2023 21:09
@jappi00
Copy link

jappi00 commented Jan 4, 2024

Functional: LGTM

@@ -13,10 +13,10 @@ class ProductProduct(models.Model):
def _compute_quantities_dict(
self, lot_id, owner_id, package_id, from_date=False, to_date=False
):
res = super()._compute_quantities_dict(
packs = self.filtered("pack_ok")
Copy link
Member

Choose a reason for hiding this comment

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

I think we could improve this, because self.filtered will browse all items, then the self - packs will browse again all items to make the computation. I think you can do the split inside this method to avoid to browse 2 times the elements.
Why do you think about it?

Copy link
Member

Choose a reason for hiding this comment

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

The prefetch is shared, so not very big problem. There's just a new set operation.

@bruno-zanotti bruno-zanotti force-pushed the 17.0-mig-stock_product_pack branch from 5198f7b to c2ae6e4 Compare January 9, 2024 15:38
@bruno-zanotti bruno-zanotti force-pushed the 17.0-mig-stock_product_pack branch from c2ae6e4 to 8ac882b Compare April 22, 2024 14:13
@bruno-zanotti bruno-zanotti force-pushed the 17.0-mig-stock_product_pack branch from 8ac882b to 0f1a25f Compare May 14, 2024 12:48
@bruno-zanotti bruno-zanotti force-pushed the 17.0-mig-stock_product_pack branch from 0f1a25f to ffcbfed Compare May 24, 2024 16:40
@augusto-weiss
Copy link

@OCA/tools-mainteiners Merge please! Thz

@antonyht27
Copy link

@OCA-git-bot Merge please! Thx

@pedrobaeza
Copy link
Member

/ocabot migration stock_product_pack

There isn't any review yet.

@pedrobaeza pedrobaeza changed the title [MIG] stock_product_pack: Migration to 17.0 [17.0][MIG] stock_product_pack: Migration to 17.0 May 28, 2024
@OCA-git-bot OCA-git-bot added this to the 17.0 milestone May 28, 2024
@@ -27,6 +27,7 @@ def _compute_quantities_dict(
for subproduct in subproducts:
subproduct_stock = subproduct.product_id
sub_qty = subproduct.quantity
# import pdb;pdb.set_trace()
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you remove this ?

@natuan9
Copy link

natuan9 commented Oct 30, 2024

created this PR to include last changes request so that it could get merged:
[17.0][MIG] stock_product_pack: Migration to 17.0

joao-p-marques and others added 21 commits October 31, 2024 11:32
…ines.

It seems to me that it would be if a user has the maximum stock permission, can edit the lines of packs, as well as a maximum sales permission.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-pack-13.0/product-pack-13.0-stock_product_pack
Translate-URL: https://translation.odoo-community.org/projects/product-pack-13-0/product-pack-13-0-stock_product_pack/
In v13 Odoo sets the stock at zero for products that are not services.
This commit will keep the stock of the services if they are packs,
to remain the functionality of the lasts versions.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-pack-16.0/product-pack-16.0-stock_product_pack
Translate-URL: https://translation.odoo-community.org/projects/product-pack-16-0/product-pack-16-0-stock_product_pack/
Currently translated at 100.0% (5 of 5 strings)

Translation: product-pack-16.0/product-pack-16.0-stock_product_pack
Translate-URL: https://translation.odoo-community.org/projects/product-pack-16-0/product-pack-16-0-stock_product_pack/es/
Currently translated at 100.0% (5 of 5 strings)

Translation: product-pack-16.0/product-pack-16.0-stock_product_pack
Translate-URL: https://translation.odoo-community.org/projects/product-pack-16-0/product-pack-16-0-stock_product_pack/it/
Currently translated at 100.0% (5 of 5 strings)

Translation: product-pack-16.0/product-pack-16.0-stock_product_pack
Translate-URL: https://translation.odoo-community.org/projects/product-pack-16-0/product-pack-16-0-stock_product_pack/it/
@bruno-zanotti bruno-zanotti force-pushed the 17.0-mig-stock_product_pack branch from ffcbfed to 75905dc Compare October 31, 2024 14:34
@bruno-zanotti
Copy link
Contributor Author

created this PR to include last changes request so that it could get merged: [17.0][MIG] stock_product_pack: Migration to 17.0

@FrancoMaxime @natuan9
Hey, sorry I completely miss this message. I removed that lines but the tests are failing, I saw that @natuan9 add some tests tags that apparently solves the problem so I think it is better to continue with that PR.

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.