-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Migrating to Version 13
Suraj Shetty edited this page Jun 21, 2021
·
10 revisions
This page is intended to make it easier for users who maintain custom apps / forks to migrate their installations to Version 13.
If you were accessing any document methods using one of the following constructs, the method needs to be whitelisted in the doctype class. Additionally, if you were setting document methods as options
for Button
fields, those will need to be whitelisted as well.
frm.call("my_method")
// or
frappe.call({
doc: frm.doc,
method: "my_method"
})
class ToDo:
+ frappe.whitelist()
def my_method(self):
pass
Docs: https://frappeframework.com/docs/user/en/api/form#frmcall