-
- Downloads
[FIX] mrp{_account}: consider capacities when computing duration
Related enterprise PR: odoo/enterprise#39669
Steps to reproduce:
Install mrp_workorder
Create Product P1, Workcenter W1
Edit W1 > Specific capacities > Add line: Product = P1, Start time = 5, End time = 5
Create BoM > Product: P1, Operations tab > Add line: Workcenter = WC1, Default duration = 60:00 min > Save
Click on overview stat button
Issue:
The created operation has expected time of 60:00, instead of 70:00. The workcenter start and stop times are considered in this calculation, so the workcenter capacities should be considered too.
Solution:
Use `_get_expected_duration` to compute the expected duration.
opw-3229485
closes odoo/odoo#118360
Signed-off-by:
Tiffany Chang <tic@odoo.com>
Showing
- addons/mrp/report/mrp_report_bom_structure.py 2 additions, 1 deletionaddons/mrp/report/mrp_report_bom_structure.py
- addons/mrp/tests/test_bom.py 13 additions, 6 deletionsaddons/mrp/tests/test_bom.py
- addons/mrp_account/models/product.py 1 addition, 2 deletionsaddons/mrp_account/models/product.py
- addons/mrp_account/tests/test_bom_price.py 24 additions, 15 deletionsaddons/mrp_account/tests/test_bom_price.py
Loading
Please register or sign in to comment