fix: let user delete the elements of items

This commit is contained in:
Himanshu 2019-04-16 13:17:20 +05:30 committed by GitHub
parent 810dde2e0b
commit ef848fda2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,8 +103,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() {