Can someone please explain to me what locals[cdt][cdn]
actually is doing? I know it’s necessary for child tables, but I don’t know why.
3 Likes
@cpurbaugh locals is the old cache that frappe use to store the data loaded. Basically is a namespace where you can access the information of a doctype, and some meta-information.
2 Likes
Ok, but what is cdt and cdn?
cdt
= current doctype
cdn
= current docname
cdt
and cdn
are passed as default arguments by frappe
12 Likes
XD Well, that was obvious! Thanks Max!