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

This commit is contained in:
rehansari26
2025-11-05 16:46:00 +05:30
parent fb23719b62
commit 8c49c9e500

View File

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