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

Open
wants to merge 30 commits into
base: 17.0
Choose a base branch
from

Conversation

bruno-zanotti
Copy link
Contributor

No description provided.

@bruno-zanotti bruno-zanotti mentioned this pull request Dec 18, 2023
3 tasks
@bruno-zanotti bruno-zanotti marked this pull request as ready for review December 18, 2023 21:07
@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.

ernestotejeda and others added 21 commits May 24, 2024 13:39
Currently translated at 100.0% (1 of 1 strings)

Translation: product-pack-12.0/product-pack-12.0-stock_product_pack
Translate-URL: https://translation.odoo-community.org/projects/product-pack-12-0/product-pack-12-0-stock_product_pack/pt/
Currently translated at 100.0% (1 of 1 strings)

Translation: product-pack-12.0/product-pack-12.0-stock_product_pack
Translate-URL: https://translation.odoo-community.org/projects/product-pack-12-0/product-pack-12-0-stock_product_pack/fr/
…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.
OCA-git-bot and others added 9 commits May 24, 2024 13:39
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/
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet