diff --git a/erpnext/manufacturing/doctype/production_order/production_order.py b/erpnext/manufacturing/doctype/production_order/production_order.py index 572b5275a93..71f9c2446af 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.py +++ b/erpnext/manufacturing/doctype/production_order/production_order.py @@ -35,7 +35,7 @@ class ProductionOrder(Document): self.validate_sales_order() self.validate_warehouse() - self.calculate_time() + self.calculate_operating_cost() self.validate_delivery_date() from erpnext.utilities.transaction_base import validate_uom_is_integer