frappe-doctype-controller

Installation
SKILL.md

Frappe DocType Controller

See frappe-doctype-schema for the .json schema side. See frappe-doctype-form-view for the .js form controller. See frappe-doctype-list-view for the _list.js list view controller. See frappe-doctype-tests for writing DocType controller Python tests. Full per-hook reference and pitfalls table: REFERENCE.md.

Quick start

import frappe
from frappe.model.document import Document

class MyDocType(Document):
    def before_validate(self):
        # Auto-fill fields before validation fires
        if not self.status:
            self.status = "Draft"
Related skills
Installs
2
Repository
kehwar/skills
First Seen
Apr 18, 2026