[fix] allow to change doc status on get items (#12174)

diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js
index c83bcd6..6841354 100644
--- a/erpnext/public/js/utils.js
+++ b/erpnext/public/js/utils.js
@@ -245,6 +245,7 @@
 			callback: function(r) {
 				if(!r.exc) {
 					var doc = frappe.model.sync(r.message);
+					cur_frm.dirty();
 					cur_frm.refresh();
 				}
 			}