Merge pull request #50367 from rehanrehman389/asset-mov-fix

fix: set company before creating asset movement to avoid permission error
This commit is contained in:
Khushi Rawat
2025-11-06 03:19:29 +05:30
committed by GitHub

View File

@@ -464,6 +464,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(