diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json index 3b91f09b21f33cb792a90d220946104e363e91d5..3c2a95f5e70ca838422b8a5c4039002aa4c219d6 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json @@ -1326,10 +1326,14 @@ "print_hide": 1 }, { + "fetch_from": "customer.language", + "fetch_if_empty": 1, "fieldname": "language", - "fieldtype": "Data", + "fieldtype": "Link", + "hide_days": 1, + "hide_seconds": 1, "label": "Print Language", - "length": 6, + "options": "Language", "print_hide": 1, "read_only": 1 }, @@ -1934,7 +1938,7 @@ "link_fieldname": "consolidated_invoice" } ], - "modified": "2024-04-16 16:27:05.980674", + "modified": "2024-05-23 14:02:28.549041", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice", diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 355988e5e6032038115a3a1ac0c2ffff71605857..86949405f74c8b2e00d16f5432c5d9a556df266d 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -145,7 +145,7 @@ class SalesInvoice(SellingController): is_pos: DF.Check is_return: DF.Check items: DF.Table[SalesInvoiceItem] - language: DF.Data | None + language: DF.Link | None letter_head: DF.Link | None loyalty_amount: DF.Currency loyalty_points: DF.Int diff --git a/erpnext/selling/doctype/quotation/quotation.json b/erpnext/selling/doctype/quotation/quotation.json index e225503560a592ce8c2778d81e38c462c9877c41..995d61793bc88b15e7616013f01ec01a84303a2e 100644 --- a/erpnext/selling/doctype/quotation/quotation.json +++ b/erpnext/selling/doctype/quotation/quotation.json @@ -830,8 +830,9 @@ }, { "fieldname": "language", - "fieldtype": "Data", + "fieldtype": "Link", "label": "Print Language", + "options": "Language", "print_hide": 1, "read_only": 1 }, @@ -1106,7 +1107,7 @@ "idx": 82, "is_submittable": 1, "links": [], - "modified": "2024-05-30 09:49:33.187574", + "modified": "2024-04-20 01:15:19.171383", "modified_by": "Administrator", "module": "Selling", "name": "Quotation", diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index 4878d716fd8abb3055fc36c0a986f0a6a8df7f00..93f6b315333842f524813fca58073f058cc7d15c 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -69,7 +69,7 @@ class Quotation(SellingController): in_words: DF.Data | None incoterm: DF.Link | None items: DF.Table[QuotationItem] - language: DF.Data | None + language: DF.Link | None letter_head: DF.Link | None lost_reasons: DF.TableMultiSelect[QuotationLostReasonDetail] markup_percentage: DF.Percent diff --git a/erpnext/selling/doctype/sales_order/sales_order.json b/erpnext/selling/doctype/sales_order/sales_order.json index 5eea2097e6f573a58852d2a38d53edaffa573bcd..d3e51489d2387c1b6cd03ce5d55ced51e8e78b5e 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.json +++ b/erpnext/selling/doctype/sales_order/sales_order.json @@ -1204,11 +1204,14 @@ "label": "Print Settings" }, { + "fetch_from": "customer.language", + "fetch_if_empty": 1, "fieldname": "language", - "fieldtype": "Data", + "fieldtype": "Link", "hide_days": 1, "hide_seconds": 1, "label": "Print Language", + "options": "Language", "print_hide": 1, "read_only": 1 }, @@ -1700,7 +1703,7 @@ "idx": 105, "is_submittable": 1, "links": [], - "modified": "2024-05-30 09:49:20.581198", + "modified": "2024-05-27 18:51:54.905804", "modified_by": "Administrator", "module": "Selling", "name": "Sales Order", diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index bf5e175bfbc523a6d98d06739fab2ae68d06c17f..8470ee264427f39b35290d9302d5e26e9d220647 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -121,7 +121,7 @@ class SalesOrder(SellingController): inter_company_order_reference: DF.Link | None is_internal_customer: DF.Check items: DF.Table[SalesOrderItem] - language: DF.Data | None + language: DF.Link | None letter_head: DF.Link | None loyalty_amount: DF.Currency loyalty_points: DF.Int diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.json b/erpnext/stock/doctype/delivery_note/delivery_note.json index 300715545b5cfad857d3e4d57d0752e3ab8c0020..56f94218b24c595aa8f5b0d698d5c732b0a5dc49 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.json +++ b/erpnext/stock/doctype/delivery_note/delivery_note.json @@ -1044,9 +1044,12 @@ "report_hide": 1 }, { + "fetch_from": "customer.language", + "fetch_if_empty": 1, "fieldname": "language", - "fieldtype": "Data", + "fieldtype": "Link", "label": "Print Language", + "options": "Language", "print_hide": 1, "read_only": 1 }, @@ -1395,7 +1398,7 @@ "idx": 146, "is_submittable": 1, "links": [], - "modified": "2024-03-22 16:15:07.253135", + "modified": "2024-05-23 14:18:20.679692", "modified_by": "Administrator", "module": "Stock", "name": "Delivery Note", diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.py b/erpnext/stock/doctype/delivery_note/delivery_note.py index 6ce05941cbc7369b49163692e87b741e804aef9c..ea83475c565c2b57f5883147458a54ed2546bfc2 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.py +++ b/erpnext/stock/doctype/delivery_note/delivery_note.py @@ -84,7 +84,7 @@ class DeliveryNote(SellingController): is_return: DF.Check issue_credit_note: DF.Check items: DF.Table[DeliveryNoteItem] - language: DF.Data | None + language: DF.Link | None letter_head: DF.Link | None lr_date: DF.Date | None lr_no: DF.Data | None