diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index 4ff4428b80c..4f7d9ad92e8 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -713,7 +713,7 @@ class BuyingController(SubcontractingController): asset.supplier = self.supplier elif self.docstatus == 2: if asset.docstatus == 2: - break + continue if asset.docstatus == 0: asset.set(field, None) asset.supplier = None