forked from odoo/odoo
-
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.
[REF] stock, mrp: remove constraint, add onchanges
We added a constraint in [1] to improve the usability of introducing tracked move lines in the system. However, this contraint proved to be too costly (trigger multiple time during the validation process, never called in batch as it is set on the model at the end of a o2m). We replaces the constraint by checks on the validating process or by (non-blocking) onchanges. With these changes, validating the receipt of 3000 tracked move lines goes from 17 minutes to around 4. [1] 4824074 opw-803887
- Loading branch information
Showing
3 changed files
with
54 additions
and
54 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
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