Initial commit: fixtures, hooks, doctype events, API, and JS
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
frappe.ui.form.on('Pallet', {
|
||||
refresh: function(frm) {
|
||||
frm.add_custom_button(__('View Serials'), function() {
|
||||
frappe.set_route('List', 'Serial No', {
|
||||
'pallet': frm.doc.pallet_number || frm.doc.name
|
||||
});
|
||||
}, __('View'));
|
||||
|
||||
frm.add_custom_button(__('Serials Spreadsheet'), function() {
|
||||
frappe.set_route('query-report', 'Serial Nos by Pallet', {
|
||||
'pallet': frm.doc.pallet_number || frm.doc.name
|
||||
});
|
||||
}, __('View'));
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user