Ive tried to make a custom doctype but im getting this error when i try to save a new document of that type
Traceback (most recent call last): File “/home/oliver/frappe-bench/apps/frappe/frappe/app.py”, line 62, in application response = frappe.api.handle() File “/home/oliver/frappe-bench/apps/frappe/frappe/api.py”, line 55, in handle return frappe.handler.handle() File “/home/oliver/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle data = execute_cmd(cmd) File “/home/oliver/frappe-bench/apps/frappe/frappe/handler.py”, line 61, in execute_cmd return frappe.call(method, **frappe.form_dict) File “/home/oliver/frappe-bench/apps/frappe/frappe/init.py”, line 1054, in call return fn(*args, **newargs) TypeError: savedocs() missing 2 required positional arguments: ‘doc’ and ‘action’
This isn’t a custom function. This error is coming from attempting to create a new DocType from within the GUI as directed here: Not Found
The form seems to be sending a post request with “doc” and “action” parameters to /api/method/frappe.desk.form.save.savedocs but the function doesn’t seem to be getting them.
The code you have referenced seems to be about creating new items of a doctype that already exists. I really can’t see how creating a new item record will help me create a new table. Maybe there’s a miscommunication, let me try explaining further.
I’m working on a shipping label app. I’m trying to create a new “shipment” doctype. The documentation says to go to Developer > Documents > DocType > New to create this. The form in that location fails and gives an error stating that the “doc” and “action” parameters are missing from the post request. The post request shows that it did in fact send those parameters.
I feel like i might be missing a step, but I can’t find anything on it.