[Fix] - if its not multi company set it by default on BO
This commit is contained in:
parent
5f4b6d267c
commit
8750caa8e3
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user