Hi All,
i am try to update document in server side . but i am getting error as below
AttributeError: ‘dict’ object has no attribute ‘modified’
i see this error is coming while updating child table values. here is my code
File "/home/frappe/bench-v12/apps/frappe/frappe/model/document.py", line 449, in
set_user_and_timestamp
d.modified = self.modified
AttributeError: 'dict' object has no attribute 'modified'
In my case I had this issue when trying to add a line to a Stock Entry in a Before Submit handler.
Examining the code at the indicated line I realized that the dict object lacking the modified attribute was, in fact, the new line I was trying to add.
I added, a modified attribute, but immediately got back:
AttributeError: ‘dict’ object has no attribute ‘name’
I added, a name attribute, but got back yet another missing item.