fix(Asset Repair): Set company when creating Stock Entry

This commit is contained in:
GangaManoj 2021-06-03 01:54:44 +05:30
parent 2833903ce5
commit 65b2f9234b

View File

@ -76,7 +76,8 @@ class AssetRepair(Document):
def decrease_stock_quantity(self):
stock_entry = frappe.get_doc({
"doctype": "Stock Entry",
"stock_entry_type": "Material Issue"
"stock_entry_type": "Material Issue",
"company": frappe.get_value('Asset', self.asset, "company")
})
for stock_item in self.stock_items: