Action for fieldtype Button

My point is, why are you keeping it as a method? Why not a function? I don’t see any advantage.

frappe.call() can be used to call only whitelisted functions.