Add in custom js to quotation item doctype

Hi All,

I can easily add the cur_frm.add_custom_button(__(‘custom_doctype’) function to sales_order.js cause there already have the .js file.
How i add the custom button to quotation item doctype? as there is no sales_order_item.js file.
Shall i create it? or use custom script to do so?

@kenny,

Instead of creating a *.js file you can create a Custom Script in the application.
please check

http://frappe.github.io/erpnext/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/

@makarand_b

thanks for the guide.
i try to add as below:

but there is no ‘do something’ custom button been shown in sales order item pop out.

Can you guide a bit on this? thanks ya.