mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
[Fix] - if its not multi company set it by default on BO
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user