~/talk

Customize document lifecycle using doc events and class overrides

Talkat Frappe Build 2024 · 2024-03-08..03-09· [developer-experience]
links:none on file
slides:none on file

Shows concrete code changes: adds a before_insert hook that sets an employee's appraisal_date one year forward and a submit hook that updates the employee when an appraisal posts, implemented via doc_events in hooks.py; demonstrates a class override that replaces the System Console run method so only a custom system console manager role can execute code (prevents System Manager from running arbitrary SQL/Python). Uses Frappe hooks, last-writer wins, and the demos work as shown.

AI-written summary · about

  1. 0:00Introduction to customization
  2. 1:26Document events overview
  3. 3:36Choosing between methods
  4. 5:04Demo on document events
  5. 7:31Document class overrides
  6. 9:43Demo on class overrides
  7. 11:15Final thoughts and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.