-
-
Notifications
You must be signed in to change notification settings - Fork 983
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
[FIX][14.0] pricelist_cache: change root pricelist job execution #2424
base: 14.0
Are you sure you want to change the base?
Conversation
pricelist_id, | ||
] | ||
) | ||
# Spawn a job every 3 oter pricelists (reduce the number of jobs created) |
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.
🦦
# Spawn a job every 3 pricelists (reduce the number of jobs created) | ||
# pricelists = self.env["product.pricelist"].search([]) | ||
pricelists_root = self.env["product.pricelist"]._get_root_pricelist_ids() | ||
pricelist_ids = [plid for plid in pricelist_ids if plid not in pricelists_root] |
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.
pricelist_ids = [plid for plid in pricelist_ids if plid not in pricelists_root] | |
pricelist_ids = self.env["product.pricelist"].search([("id", "not in", pricelist_root)]) |
and remove line 194, maybe?
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.
Updated see fixup
4c03632
to
27ca4e0
Compare
Root pricelist take a long time to compute. So execute computation one by one.
/ocabot merge patch |
@dreispt The merge process could not start, because command `git merge --no-ff -m 'Merge PR #2424 into 14.0 Signed-off-by dreispt' tmp-pr-2424` failed with output:
|
Root pricelist take a long time to compute.
So execute computation one by one.