mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Merge pull request #50378 from frappe/mergify/bp/version-14-hotfix/pr-50367
fix: set company before creating asset movement to avoid permission error (backport #50367)
This commit is contained in:
@@ -313,6 +313,7 @@ class Asset(AccountsController):
|
|||||||
"asset_name": self.asset_name,
|
"asset_name": self.asset_name,
|
||||||
"target_location": self.location,
|
"target_location": self.location,
|
||||||
"to_employee": self.custodian,
|
"to_employee": self.custodian,
|
||||||
|
"company": self.company,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
asset_movement = frappe.get_doc(
|
asset_movement = frappe.get_doc(
|
||||||
|
|||||||
Reference in New Issue
Block a user