跳到主要内容

官方Framework培训大纲

Bench

  • What is bench?
  • The bench directory
  • Share the bench CLI cheat sheet
  • Current Site

Site

  • What is a site?
  • The sites directory
  • Site actions: update, migrate, etc.
  • The site directory

Create a new Site

  • Sites directory structure
  • Site directory structure
  • Site commands

DocTypes

  • Naming (all types)
  • Create, Update
  • DocField (fields of a DocField)
  • Naming Series
  • Title and Image Field
  • Link Field
  • The files automatically generated for a doctype
  • Different views for a doctype
  • Child DocType
  • Submittable DocType
  • Single DocType
  • permissions

Migration

  • JSON changes effect during migrations
  • Explore the patches.txt file

Controller Methods

  • Document hooks
  • before_insert, after_insert
  • before_save, after_save, on_update
  • validate
  • autoname
  • before_submit, on_submit
  • before_cancel, on_cancel

Web pages & Web Forms

  • www pages
  • templates
  • Linking static assets
  • Web Views for DocTypes

Hooks

  • Standard Hooks (framework)
  • App Hooks (ERPNext)
  • Custom App Hooks

Custom Pages

  • Understand custom pages and their file structure
  • Methods available in the custom page and their use cases

Asset Bandling

  • Understand asset bandling
  • Explore the files affected while bandling

Server Scripts

  • Server Scripts
  • Restricted API (safe_exec.py)

Client-Side Scripts

  • App Code
  • Client Scripts (Desk)

Custom Fields

  • Setup and Configuration

Fixtures

  • Create records on app install

Reports

  • Report Builder
  • Query Report
  • Script Report

REST APIs

  • Introduction
  • API Authentication
  • Uploading files with a REST API

Client-Side Scripts

  • Introduction
  • API Authentication
  • Uploading files with a REST API
  • Integrating an API with an external API

Others

  • Background jobs
  • Discuss real time events
  • Best practices during customization to ensure sustainable code