fix: mapping of dispatch address when creating PO from SO (backport #47552) (#47553)

fix: mapping of dispatch address when creating PO from SO (#47552)

* fix: mapping of dispatch address when creating PO from SO

* fix: add to default supplier function as well

(cherry picked from commit 82161e9cb5)

Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
mergify[bot]
2025-05-14 20:52:04 +05:30
committed by GitHub
parent b22831bd94
commit 30ec69c977

View File

@@ -1328,6 +1328,7 @@ def make_purchase_order_for_default_supplier(source_name, selected_items=None, t
{ {
"Sales Order": { "Sales Order": {
"doctype": "Purchase Order", "doctype": "Purchase Order",
"field_map": {"dispatch_address_name": "dispatch_address"},
"field_no_map": [ "field_no_map": [
"address_display", "address_display",
"contact_display", "contact_display",
@@ -1447,6 +1448,7 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
{ {
"Sales Order": { "Sales Order": {
"doctype": "Purchase Order", "doctype": "Purchase Order",
"field_map": {"dispatch_address_name": "dispatch_address"},
"field_no_map": [ "field_no_map": [
"address_display", "address_display",
"contact_display", "contact_display",