fix: nonetype object has no attribute options

This commit is contained in:
Rohit Waghchaure
2021-03-07 11:43:22 +05:30
parent ff70e61d7a
commit a9b1347600
3 changed files with 61 additions and 669 deletions

View File

@@ -1533,7 +1533,10 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
if(k=="price_list_rate") {
if(flt(v) != flt(d.price_list_rate)) price_list_rate_changed = true;
}
frappe.model.set_value(d.doctype, d.name, k, v);
if (k !== 'free_item_data') {
frappe.model.set_value(d.doctype, d.name, k, v);
}
}
}