No permission to submit company_contribution_pf


I have created new DocType company_contribution_amount.
Then I have inserted data into company_contribution_amount from payroll process module

pf_entry = frappe.new_doc(“company_contribution_pf”)
pf_entry.amount = amount

I have wrote these code at

But is showing TypeError(“PermissionError(u’No permission to submit company_contribution_pf c88bd659a6’,) is not JSON serializable”,) is not JSON serializable

Have you set the proper permissions for this DocType ? Check Submit column in the Permission Rules table

1 Like