I want to create Sales Invoice from the Quotation. For the same, I have added Custom Script Button has appeared fine, but when I click on that button, getting an error message.
Traceback (most recent call last):
File "/home/frappe/benches/bench-2017-01-27/apps/frappe/frappe/app.py", line 55, in application
response = frappe.handler.handle()
File "/home/frappe/benches/bench-2017-01-27/apps/frappe/frappe/handler.py", line 19, in handle
execute_cmd(cmd)
File "/home/frappe/benches/bench-2017-01-27/apps/frappe/frappe/handler.py", line 40, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/home/frappe/benches/bench-2017-01-27/apps/frappe/frappe/__init__.py", line 897, in call
return fn(*args, **newargs)
File "/home/frappe/benches/bench-2017-01-27/apps/frappe/frappe/model/mapper.py", line 16, in make_mapped_doc
method = frappe.get_attr(method)
File "/home/frappe/benches/bench-2017-01-27/apps/frappe/frappe/__init__.py", line 877, in get_attr
return getattr(get_module(modulename), methodname)
AttributeError: 'module' object has no attribute '_make_sales_invoice'
Can you share the use case? Currently _make_sales_invoice method is not available in the quotation.py. In order to create the Sales Invoice from the quotation, you will need to create the custom app and write a method to create an invoice from Quotation.
You will need to write a similar method to make_sales_order then call your custom app method instead.
My use case is that, once I receive confirmation from the Customer on Quotation, I need to create Sales Invoice from Quotation itself.
Since my ERPNext account is hosted on erpnext.com, I cannot create custom application. Any other approach to cater to this requirement in the hosted account?