mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
fix(Asset Repair): Set company when creating Stock Entry
This commit is contained in:
@@ -75,7 +75,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:
|
||||||
|
|||||||
Reference in New Issue
Block a user