ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

TypeError: can't set attributes of built-in/extension type 'NameError'

Hi all!
While updating stock today I got the following error when I tried to submit the document.
TypeError: can’t set attributes of built-in/extension type ‘NameError’

Please help me! Thank you in advance.