mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-24 05:47:15 +00:00
fix(stock): respect manual picking when mapping sales orders
This commit is contained in:
@@ -1965,7 +1965,7 @@ def make_inter_company_purchase_order(source_name, target_doc=None):
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def create_pick_list(source_name, target_doc=None):
|
||||
def create_pick_list(source_name: str, target_doc: str | dict | Document | None = None):
|
||||
from erpnext.stock.doctype.packed_item.packed_item import is_product_bundle
|
||||
|
||||
def validate_sales_order():
|
||||
@@ -2040,7 +2040,8 @@ def create_pick_list(source_name, target_doc=None):
|
||||
|
||||
doc.purpose = "Delivery"
|
||||
|
||||
doc.set_item_locations()
|
||||
if not doc.pick_manually:
|
||||
doc.set_item_locations()
|
||||
|
||||
return doc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user