Hi Everyone,
How can i add a new child to an existing document with data coming from a different document?
I have posted a problem earlier, It is regarding saving a new document with children. I was able to find a solution by using frappe.db.commit()
. The second part of that code is that it will append the child to an existing document. so I use:
doc.save()
frappe.db.commit()
Still it did not save or append the children to the parent doc. I also tried using
doc.update_children()
frappe.db.commit()
and it is still not saving.
No error was displayed.
I also used msgprint to check the if block if it has been executed.