fix: set company before creating asset movement to avoid permission error

(cherry picked from commit 8c49c9e500)
This commit is contained in:
rehansari26
2025-11-05 16:46:00 +05:30
committed by Mergify
parent b54c5f61d6
commit 8dc80c948e

View File

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