fix(Asset Repair): Set company when creating Stock Entry
This commit is contained in:
parent
2833903ce5
commit
65b2f9234b
@ -76,7 +76,8 @@ class AssetRepair(Document):
|
|||||||
def decrease_stock_quantity(self):
|
def decrease_stock_quantity(self):
|
||||||
stock_entry = frappe.get_doc({
|
stock_entry = frappe.get_doc({
|
||||||
"doctype": "Stock Entry",
|
"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:
|
for stock_item in self.stock_items:
|
||||||
|
Loading…
Reference in New Issue
Block a user