Hi all,
Is there a way to copy data from an existing document to new document released in an update?
Thanks
Hi all,
Is there a way to copy data from an existing document to new document released in an update?
Thanks
You can always import data via Data Import Tool using csv file. Can you please elaborate a little bit more with actual document name / screenshots etc?
@nabinhait Iām sorry, that was confusing.
I need migrate data during bench update process, running a patch is the option. But the document is newly introduced, patches are executed before the apps are updated.
I mean to hook into the update process after the apps are updated
I hope you get it
Use case:
Copy accounts table from Expense Claim Type to Project Expense Type, we used Expense Claim Account in Project Expense Type, to report project expenses. It collides when the expenses have same name.
Thank you
Yes, you can do it via patch. To get updated schema of the new doctype, use frappe.reload_doc()
function inside patch. It will update the schema into database based on json.