fix: Stock Entry uses incorrect company when generated from Pick List (#44679)

(cherry picked from commit 00898be8e4)
(cherry picked from commit cd693b5fa4)
This commit is contained in:
Nicolas Pereira
2024-12-13 01:51:30 -03:00
committed by Mergify
parent 7f5c19a81e
commit 58e846709e

View File

@@ -1247,6 +1247,7 @@ def create_stock_entry(pick_list):
stock_entry = frappe.new_doc("Stock Entry")
stock_entry.pick_list = pick_list.get("name")
stock_entry.purpose = pick_list.get("purpose")
stock_entry.company = pick_list.get("company")
stock_entry.set_stock_entry_type()
if pick_list.get("work_order"):