[Fix] - if its not multi company set it by default on BO

This commit is contained in:
Khushal Trivedi 2019-10-18 17:01:16 +05:30
parent 5f4b6d267c
commit 8750caa8e3

View File

@ -12,6 +12,7 @@ frappe.ui.form.on('Blanket Order', {
},
refresh: function(frm) {
erpnext.hide_company();
if (frm.doc.customer && frm.doc.docstatus === 1) {
frm.add_custom_button(__('View Orders'), function() {
frappe.set_route('List', 'Sales Order', {blanket_order: frm.doc.name});