mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 07:29:22 +00:00
Merge pull request #44681 from frappe/mergify/bp/develop/pr-44679
fix: Stock Entry uses incorrect company when generated from Pick List (backport #44679)
This commit is contained in:
@@ -1247,6 +1247,7 @@ def create_stock_entry(pick_list):
|
|||||||
stock_entry = frappe.new_doc("Stock Entry")
|
stock_entry = frappe.new_doc("Stock Entry")
|
||||||
stock_entry.pick_list = pick_list.get("name")
|
stock_entry.pick_list = pick_list.get("name")
|
||||||
stock_entry.purpose = pick_list.get("purpose")
|
stock_entry.purpose = pick_list.get("purpose")
|
||||||
|
stock_entry.company = pick_list.get("company")
|
||||||
stock_entry.set_stock_entry_type()
|
stock_entry.set_stock_entry_type()
|
||||||
|
|
||||||
if pick_list.get("work_order"):
|
if pick_list.get("work_order"):
|
||||||
|
|||||||
Reference in New Issue
Block a user