No permission to submit company_contribution_pf

Hi,

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
pf_entry.save()
pf_entry.submit()

I have wrote these code at payroll_process.py

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