Merge pull request #50379 from frappe/mergify/bp/version-15-hotfix/pr-50367

fix: set company before creating asset movement to avoid permission error (backport #50367)
This commit is contained in:
Khushi Rawat
2025-11-06 10:03:20 +05:30
committed by GitHub

View File

@@ -458,6 +458,7 @@ class Asset(AccountsController):
"asset_name": self.asset_name,
"target_location": self.location,
"to_employee": self.custodian,
"company": self.company,
}
]
asset_movement = frappe.get_doc(