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

[15.0] mrp_subcontracting_lot_number_propagation: Non-stored field mrp.production.move_line_raw_ids cannot be searched #1156

Closed
gurneyalex opened this issue Dec 13, 2023 · 3 comments · Fixed by #1173
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Milestone

Comments

@gurneyalex
Copy link
Member

Module mrp_subcontracting_lot_number_propagation on 15.0 has a bug with the computation _compute_propagated_lot_producing : the new dependencies involve mrp.production::move_line_raw_ids which is not stored and cannot be searched.

In that case, osv.expression will replace the search element by a True node (1 = 1) which likely causes a recomputation of the field on all mrp.production each time a stock.move.line is updated, which can cause performance issues.

@gurneyalex gurneyalex added the bug label Dec 13, 2023
@gurneyalex gurneyalex added this to the 15.0 milestone Dec 13, 2023
@gurneyalex
Copy link
Member Author

@sebalix

Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 16, 2024
@grindtildeath
Copy link
Contributor

Solved by merged PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
2 participants