ERPNext Attendance DocType Extension
Install attendance_extension app using commandline bench
cd /path/to/frappe-bench
bench get-app https://github.com/aleksas/erpnext_attendance_extension.git
bench install attendance_extension
bench migrate
See Bench Commands Cheatsheet for details.
This will create two DocTypes: Attendance Settings
and Attendance Detail
in Attendance Extension
module. Also this app will alter Attendance
DocType to include 'Attendance Detail' list.
Also see App Tutorials.
Main custom scripting is concentrated in three files:
In /path/to/frappe-bench/apps/attendance_extension/attendance_extension/attendance_extension/doctype/attendance_settings
directory you'll find external_api.py Python script containing stub functions. These stub functions should be modified in order to access data from external attendace api.
If you run
cd /path/to/frappe-bench
bench execute attendance_extension.attendance_extension.doctype.attendance_settings.tasks.test
it should generate some stub attendance records (haven't checked stub test myself).
If you are not going to use scheduled attendance updates (from external attendance info source) you have to comment regular task calls in hooks.py. You can find this file in /path/to/frappe-bench/apps/attendance_extension/attendance_extension
directory.
MIT