Cur_frm (global) vs frm (local scope) - advantages?

Hi guys,

It is mostly question to frappe developers:
What are advantages of using cur_frm over frm or vice versa?
Maybe in some cases global var is not updated (by events) aspecially when you have calls on global scope?
I think one should avoid using global variables as much as possible. What do you think? :slight_smile:

2 Likes

:thumbsup: thats the core reason.

cur_frm is very old code that should be deprecated

2 Likes

Ok, I will take a look at documentation and possible fixes to guide new users.

1 Like