while i am creating sales order from quotation, it is showing this error
### App Versions
{
“crm”: “2.0.0-dev”,
“erpnext”: “16.0.0-dev”,
“frappe”: “16.0.0-dev”,
“hrms”: “16.0.0-dev”
}
### Route
Form/Quotation/SAL-QTN-2024-00001
### Traceback
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 118, in application
response = frappe.api.handle(request)
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 49, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1812, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/utils/typing_validations.py”, line 32, in wrapper
return func(*args, **kwargs)
File “apps/frappe/frappe/model/mapper.py”, line 37, in make_mapped_doc
return method(source_name)
File “apps/frappe/frappe/utils/typing_validations.py”, line 32, in wrapper
return func(*args, **kwargs)
File “apps/erpnext/erpnext/selling/doctype/quotation/quotation.py”, line 355, in make_sales_order
return _make_sales_order(source_name, target_doc)
File “apps/erpnext/erpnext/selling/doctype/quotation/quotation.py”, line 359, in _make_sales_order
customer = _make_customer(source_name, ignore_permissions)
File “apps/erpnext/erpnext/selling/doctype/quotation/quotation.py”, line 537, in _make_customer
return create_customer_from_lead(quotation.party_name, ignore_permissions=ignore_permissions)
File “apps/erpnext/erpnext/selling/doctype/quotation/quotation.py”, line 551, in create_customer_from_lead
customer.insert()
File “apps/frappe/frappe/model/document.py”, line 122, in wrapper
raise frappe.DatabaseModificationError(error_msg)
frappe.exceptions.DatabaseModificationError: Cannot call insert in read-only document mode (doc-mapper)
### Request Data
{
“type”: “POST”,
“args”: {
“method”: “erpnext.selling.doctype.quotation.quotation.make_sales_order”,
“source_name”: “SAL-QTN-2024-00001”,
“args”: null,
“selected_children”: “{}”
},
“freeze”: true,
“freeze_message”: “”,
“headers”: {},
“error_handlers”: {},
“url”: “/api/method/frappe.model.mapper.make_mapped_doc”,
“request_id”: null
}
### Response Data
{
“exception”: “frappe.exceptions.DatabaseModificationError: Cannot call insert in read-only document mode (doc-mapper)”,
“exc_type”: “DatabaseModificationError”,
“_exc_source”: “erpnext (app)”
}