-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PERF] mrp, *: add checks to _compute_days_to_order
In both mrp and purchase_stock, `_compute_days_to_order` does some computation when the rule_ids' action is 'manufacture' and 'buy' respectively. This forces the computation of rule_ids on all orderpoints in self. This commit adds some prechecks and prefiltering on self to reduce the size of the recordset that needs the value of rule_ids. Part-of: odoo#183964 Signed-off-by: William Henrotin (whe) <[email protected]>
- Loading branch information
1 parent
370f3bc
commit 88be692
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters