What problem does it solve?
Frappe/ERPNext projects often struggle with inconsistent DocType patterns, making it hard to reuse best practices across modules. This Skill provides a standardized guide for creating and configuring DocTypes, including fields, relationships, autonaming, and lifecycle hooks, to streamline development and improve consistency.
Core Features & Use Cases
- DocType Directory Structure: guidance on organizing DocTypes within a module for clarity and maintainability.
- DocType JSON Structure and Field Types Reference: examples of fields, permissions, autonaming, and sub-table patterns.
- Controller Lifecycle Hooks and Patterns: sample lifecycle methods (validate, before_save, on_submit, etc.) to model robust behaviors.
- Child Tables and Complex Schemas: patterns for parent-child relationships, including table fields, is_submittable, and editable grids.
- Virtual and Single DocTypes, Naming Patterns: examples for autoname, naming rules, and single-point settings.
Quick Start
Create a new DocType named "My Custom DocType" under module "My Module" following the directory structure and JSON pattern described in this guide.