fix: let user delete the elements of items

This commit is contained in:
Himanshu
2019-04-16 13:16:19 +05:30
committed by GitHub
parent e87e6d07ba
commit d492db4ccb

View File

@@ -95,8 +95,6 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend(
this._super();
if((!doc.is_return) && (doc.status=="Closed" || doc.is_new())) {
this.frm.items = [];
this.frm.refresh();
if (this.frm.doc.docstatus===0) {
this.frm.add_custom_button(__('Sales Order'),
function() {