Cannot submit a saved quotation

App Versions

{
	"crm": "2.0.0-dev",
	"erpnext": "15.47.4",
	"frappe": "15.51.1",
	"myapp": "0.0.1"
}

Route

Form/Quotation/SAL-QTN-2025-00003

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 114, 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 50, in handle
    data = execute_cmd(cmd)
           ^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1726, in call
    return fn(*args, **newargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/desk/form/save.py", line 37, in savedocs
    doc.submit()
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1060, in submit
    return self._submit()
           ^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1043, in _submit
    return self.save()
           ^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 342, in save
    return self._save(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 395, in _save
    self.run_post_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1143, in run_post_save_methods
    self.run_method("on_submit")
  File "apps/frappe/frappe/model/document.py", line 974, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1334, in composer
    return composed(self, method, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1316, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 971, in fn
    return method_object(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/erpnext/erpnext/selling/doctype/quotation/quotation.py", line 283, in on_submit
    self.update_lead()
  File "apps/erpnext/erpnext/selling/doctype/quotation/quotation.py", line 215, in update_lead
    frappe.get_doc("Lead", self.party_name).set_docstatus(update=1)
TypeError: Document.set_docstatus() got an unexpected keyword argument 'update'

Request Data

{
	"type": "POST",
	"args": {
		"doc": "{\"name\":\"SAL-QTN-2025-00003\",\"owner\":\"Administrator\",\"creation\":\"2025-01-16 16:53:59.436021\",\"modified\":\"2025-01-16 16:53:59.436021\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":0,\"title\":\"Maya Enterprise\",\"naming_series\":\"SAL-QTN-.YYYY.-\",\"quotation_to\":\"Lead\",\"party_name\":\"1diqbinlrl\",\"customer_name\":\"Maya Enterprise\",\"transaction_date\":\"2025-01-16\",\"valid_till\":\"2025-02-16\",\"order_type\":\"Sales\",\"company\":\"Babu Textiles\",\"currency\":\"INR\",\"conversion_rate\":1,\"selling_price_list\":\"Standard Selling\",\"price_list_currency\":\"INR\",\"plc_conversion_rate\":1,\"ignore_pricing_rule\":0,\"total_qty\":67,\"total_net_weight\":0,\"base_total\":1126,\"base_net_total\":1126,\"total\":1126,\"net_total\":1126,\"tax_category\":\"GST\",\"taxes_and_charges\":\"GSt - BBTex\",\"base_total_taxes_and_charges\":202.68,\"total_taxes_and_charges\":202.68,\"base_grand_total\":1328.68,\"base_rounding_adjustment\":0.32,\"base_rounded_total\":1329,\"base_in_words\":\"\",\"grand_total\":1328.68,\"rounding_adjustment\":0.32,\"rounded_total\":1329,\"disable_rounded_total\":0,\"in_words\":\"\",\"apply_discount_on\":\"Grand Total\",\"base_discount_amount\":0,\"additional_discount_percentage\":0,\"discount_amount\":0,\"other_charges_calculation\":\"<div class=\\\"tax-break-up\\\" style=\\\"overflow-x: auto;\\\">\\n\\t<table class=\\\"table table-bordered table-hover\\\">\\n\\t\\t<thead>\\n\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<th class=\\\"text-left\\\">Item</th>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<th class=\\\"text-right\\\">Taxable Amount</th>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<th class=\\\"text-right\\\">CGST</th>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<th class=\\\"text-right\\\">SGST</th>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t</tr>\\n\\t\\t</thead>\\n\\t\\t<tbody>\\n\\t\\t\\t\\n\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t<td>IT0003:Book</td>\\n\\t\\t\\t\\t\\t<td class=\\\"text-right\\\">\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t₹ 846.00\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"text-right\\\">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t₹ 25.20\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"text-right\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t(9.0%)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t₹ 25.20\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\n\\t\\t</tbody>\\n\\t</table>\\n</div>\",\"contact_display\":\"\",\"contact_mobile\":\"5656565645\",\"contact_email\":\"maya@gmail.com\",\"tc_name\":\"No returning of damaged products\",\"terms\":\"<div class=\\\"ql-editor read-mode\\\"><p>The products sold cannot be returned if damaged</p></div>\",\"group_same_items\":0,\"language\":\"en\",\"status\":\"Draft\",\"doctype\":\"Quotation\",\"payment_schedule\":[{\"name\":\"qhtt54n1hf\",\"owner\":\"Administrator\",\"creation\":\"2025-01-16 16:53:59.620428\",\"modified\":\"2025-01-16 16:53:59.620428\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":1,\"due_date\":\"2025-01-16\",\"invoice_portion\":100,\"discount\":0,\"payment_amount\":1329,\"outstanding\":1329,\"paid_amount\":0,\"discounted_amount\":0,\"base_payment_amount\":1329,\"parent\":\"SAL-QTN-2025-00003\",\"parentfield\":\"payment_schedule\",\"parenttype\":\"Quotation\",\"doctype\":\"Payment Schedule\"}],\"packed_items\":[],\"pricing_rules\":[],\"lost_reasons\":[],\"competitors\":[],\"items\":[{\"name\":\"ejgg5tjc56\",\"owner\":\"Administrator\",\"creation\":\"2025-01-16 16:53:59.436021\",\"modified\":\"2025-01-16 16:53:59.436021\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":1,\"item_code\":\"IT0003:Book\",\"item_name\":\"IT0003:Book\",\"description\":\"IT0003:Book\",\"item_group\":\"Products\",\"image\":\"\",\"qty\":47,\"stock_uom\":\"Nos\",\"uom\":\"Nos\",\"conversion_factor\":1,\"stock_qty\":47,\"actual_qty\":0,\"company_total_stock\":0,\"price_list_rate\":0,\"base_price_list_rate\":0,\"margin_type\":\"\",\"margin_rate_or_amount\":0,\"rate_with_margin\":0,\"discount_percentage\":0,\"discount_amount\":0,\"base_rate_with_margin\":0,\"rate\":18,\"net_rate\":18,\"amount\":846,\"net_amount\":846,\"base_rate\":18,\"base_net_rate\":18,\"base_amount\":846,\"base_net_amount\":846,\"pricing_rules\":\"\",\"stock_uom_rate\":18,\"is_free_item\":0,\"is_alternative\":0,\"has_alternative_item\":0,\"valuation_rate\":0,\"gross_profit\":846,\"weight_per_unit\":0,\"total_weight\":0,\"warehouse\":\"Stores - BBTex\",\"against_blanket_order\":0,\"blanket_order_rate\":0,\"projected_qty\":0,\"item_tax_rate\":\"{}\",\"page_break\":0,\"parent\":\"SAL-QTN-2025-00003\",\"parentfield\":\"items\",\"parenttype\":\"Quotation\",\"doctype\":\"Quotation Item\"},{\"name\":\"pfjf7m0uoe\",\"owner\":\"Administrator\",\"creation\":\"2025-01-16 16:53:59.436021\",\"modified\":\"2025-01-16 16:53:59.436021\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":2,\"item_code\":\"IT001\",\"item_name\":\"IT001\",\"description\":\"IT001\",\"item_group\":\"Products\",\"image\":\"\",\"qty\":20,\"stock_uom\":\"Nos\",\"uom\":\"Nos\",\"conversion_factor\":1,\"stock_qty\":20,\"actual_qty\":0,\"company_total_stock\":0,\"price_list_rate\":0,\"base_price_list_rate\":0,\"margin_type\":\"\",\"margin_rate_or_amount\":0,\"rate_with_margin\":0,\"discount_percentage\":0,\"discount_amount\":0,\"base_rate_with_margin\":0,\"rate\":14,\"net_rate\":14,\"amount\":280,\"net_amount\":280,\"base_rate\":14,\"base_net_rate\":14,\"base_amount\":280,\"base_net_amount\":280,\"pricing_rules\":\"\",\"stock_uom_rate\":14,\"is_free_item\":0,\"is_alternative\":0,\"has_alternative_item\":0,\"valuation_rate\":0,\"gross_profit\":280,\"weight_per_unit\":0,\"total_weight\":0,\"against_blanket_order\":0,\"blanket_order_rate\":0,\"projected_qty\":0,\"item_tax_rate\":\"{}\",\"page_break\":0,\"parent\":\"SAL-QTN-2025-00003\",\"parentfield\":\"items\",\"parenttype\":\"Quotation\",\"doctype\":\"Quotation Item\"}],\"taxes\":[{\"name\":\"q48a3c7ovk\",\"owner\":\"Administrator\",\"creation\":\"2025-01-16 16:53:59.436021\",\"modified\":\"2025-01-16 16:53:59.436021\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":1,\"charge_type\":\"On Net Total\",\"account_head\":\"2020202020 - CGST - BBTex\",\"description\":\"CGST\",\"included_in_print_rate\":0,\"included_in_paid_amount\":0,\"cost_center\":\"Main - BBTex\",\"rate\":9,\"account_currency\":\"INR\",\"tax_amount\":101.34,\"total\":1227.34,\"tax_amount_after_discount_amount\":101.34,\"base_tax_amount\":101.34,\"base_total\":1227.34,\"base_tax_amount_after_discount_amount\":101.34,\"item_wise_tax_detail\":\"{\\\"IT0003:Book\\\":[9,76.14],\\\"IT001\\\":[9,25.2]}\",\"dont_recompute_tax\":0,\"parent\":\"SAL-QTN-2025-00003\",\"parentfield\":\"taxes\",\"parenttype\":\"Quotation\",\"doctype\":\"Sales Taxes and Charges\"},{\"name\":\"i64i4m20ej\",\"owner\":\"Administrator\",\"creation\":\"2025-01-16 16:53:59.436021\",\"modified\":\"2025-01-16 16:53:59.436021\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":2,\"charge_type\":\"On Net Total\",\"account_head\":\"212121212121 - SGST - BBTex\",\"description\":\"SGST\",\"included_in_print_rate\":0,\"included_in_paid_amount\":0,\"cost_center\":\"Main - BBTex\",\"rate\":9,\"account_currency\":\"INR\",\"tax_amount\":101.34,\"total\":1328.68,\"tax_amount_after_discount_amount\":101.34,\"base_tax_amount\":101.34,\"base_total\":1328.68,\"base_tax_amount_after_discount_amount\":101.34,\"item_wise_tax_detail\":\"{\\\"IT0003:Book\\\":[9,76.14],\\\"IT001\\\":[9,25.2]}\",\"dont_recompute_tax\":0,\"parent\":\"SAL-QTN-2025-00003\",\"parentfield\":\"taxes\",\"parenttype\":\"Quotation\",\"doctype\":\"Sales Taxes and Charges\"}],\"__onload\":{\"make_payment_via_journal_entry\":0},\"__last_sync_on\":\"2025-01-16T11:28:20.708Z\"}",
		"action": "Submit"
	},
	"btn": {
		"jQuery370074875812433312831": {
			"events": {
				"click": [
					{
						"type": "click",
						"origType": "click",
						"guid": 399,
						"namespace": ""
					}
				]
			}
		}
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.save.savedocs",
	"request_id": null
}

Response Data

{
	"exception": "TypeError: Document.set_docstatus() got an unexpected keyword argument 'update'",
	"exc_type": "TypeError",
	"_exc_source": "erpnext (app)"
}