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

[IMP] pricelist_cache: update price cache in chuncks #3060

Open
wants to merge 5 commits into
base: 14.0
Choose a base branch
from

Conversation

vuwnevska
Copy link

for big updates even a delayed job cannot handle the update, to avoid this perform product search before job is created

@vuwnevska vuwnevska changed the title pricelist_cache: update price cache in chuncks [IMP] pricelist_cache: update price cache in chuncks Apr 8, 2024
@vuwnevska vuwnevska force-pushed the imp_pricelist_cache_14.0 branch 2 times, most recently from 0c6df85 to 9999409 Compare April 8, 2024 20:45
Co-authored-by: Michael Tietz <78783475+mt-software-de@users.noreply.github.com>
Co-authored-by: Michael Tietz <78783475+mt-software-de@users.noreply.github.com>
Comment on lines +153 to +159
template_items = pricelist.item_ids.filtered(
lambda i: i.product_tmpl_id.product_variant_ids
)
if template_items:
variants_ids = template_items.product_tmpl_id.product_variant_ids
if any([True for id in variants_ids.ids if id in product_ids]):
product_ids_to_update.extend(variants_ids.ids)

Choose a reason for hiding this comment

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

This would be good to have it in one loop with the first. item_ids.filtered

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.

None yet

3 participants