I want to add some custom field on select of “Get Items from” option. Example in sales invoice we have option from get items from sales order. On selecting of a sales order i want to fetch one/two field value from sales order master. I need to do this by custom script.
Give the same name to custom fields on both form Sales Order and Sales Invoice.
If it’s not worked. you have to override make_sales_invoice method from sales_order.py with custom method. Map your custom fields in that method.
I have whitelisted the method by @frappe.whitelist() in my custom app. After that an error showing that “job_number_test() takes exactly 2 arguments (0 given)”
My code is @frappe.whitelist()
def job_number_test(doc,method):