diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json index c27bea1b486..bfdccfbada9 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json @@ -1575,12 +1575,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 }, @@ -2203,7 +2205,7 @@ "link_fieldname": "consolidated_invoice" } ], - "modified": "2024-05-08 18:02:28.549041", + "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 50cd317a4f1..48f28c59fb0 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -136,7 +136,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 7d0a1bb7958..548e645acdf 100644 --- a/erpnext/selling/doctype/quotation/quotation.json +++ b/erpnext/selling/doctype/quotation/quotation.json @@ -826,8 +826,9 @@ }, { "fieldname": "language", - "fieldtype": "Data", + "fieldtype": "Link", "label": "Print Language", + "options": "Language", "print_hide": 1, "read_only": 1 }, @@ -1073,7 +1074,7 @@ "idx": 82, "is_submittable": 1, "links": [], - "modified": "2024-03-27 13:10:30.774058", + "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 4b23af1ee69..4381531fc4b 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] named_place: DF.Data | None diff --git a/erpnext/selling/doctype/sales_order/sales_order.json b/erpnext/selling/doctype/sales_order/sales_order.json index 7b476baa7bb..7bf0858001e 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.json +++ b/erpnext/selling/doctype/sales_order/sales_order.json @@ -1196,11 +1196,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 }, @@ -1659,7 +1662,7 @@ "idx": 105, "is_submittable": 1, "links": [], - "modified": "2024-05-23 16:35:54.905804", + "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 dfb3817c37a..592a8eacfcf 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -115,7 +115,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 76c19a0a6b6..fab0670eb75 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.json +++ b/erpnext/stock/doctype/delivery_note/delivery_note.json @@ -1047,9 +1047,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 }, @@ -1405,7 +1408,7 @@ "idx": 146, "is_submittable": 1, "links": [], - "modified": "2024-03-29 19:03:55.374173", + "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 df6536624fa..c021e22fb7e 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