hi guys,
i’ve got error when rename item name and item code
And the error Message like this :
### App Versions
{
“erpnext”: “15.5.0”,
“frappe”: “15.4.1”,
“hrms”: “15.5.0”,
“payments”: “0.0.1”,
“print_designer”: “1.0.0”,
“webshop”: “0.0.1”
}
### Route
Form/Item/LOSTVAPE - URSA BABY KIT
### Traceback
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 110, 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 1715, 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/model/rename_doc.py”, line 75, in update_document_title
transformed_name = doc.run_method(“before_rename”, current_name, updated_name, merge)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 950, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 1316, in composer
return composed(self, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 1300, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: execute() takes from 3 to 4 positional arguments but 5 were given
### Request Data
{
“type”: “POST”,
“args”: {
“doctype”: “Item”,
“docname”: “LOSTVAPE - URSA BABY KIT”,
“name”: “URSA BABY KIT”,
“title”: “URSA BABY KIT”,
“enqueue”: true,
“merge”: 0,
“freeze”: true,
“freeze_message”: “Updating related fields…”
},
“freeze”: true,
“freeze_message”: “Updating related fields…”,
“headers”: {},
“error_handlers”: {},
“url”: “/api/method/frappe.model.rename_doc.update_document_title”,
“request_id”: null
}
### Response Data
{
“exception”: “TypeError: execute() takes from 3 to 4 positional arguments but 5 were given”,
“exc_type”: “TypeError”
}