mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 07:32:50 +00:00
chore: frappe.whitelist for doc methods (#25465)
This commit is contained in:
@@ -50,6 +50,7 @@ class TherapyType(Document):
|
||||
|
||||
self.db_set('change_in_item', 0)
|
||||
|
||||
@frappe.whitelist()
|
||||
def add_exercises(self):
|
||||
exercises = self.get_exercises_for_body_parts()
|
||||
last_idx = max([cint(d.idx) for d in self.get('exercises')] or [0,])
|
||||
|
||||
Reference in New Issue
Block a user