diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json index 2b71baf1d7a8043bf711f9b4793e6113ebcccde6..a3b475c5de64de0f5debd8e1896299db52ad2c02 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json @@ -1328,10 +1328,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 }, @@ -1946,7 +1950,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 430a1c97509de95287693e577ba92a3163c1919f..a4ade2230b680cbe7dca0cf26c69083a10fdc8d1 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -144,7 +144,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 01543949eb25eb3235d5484df53c659e18dd6106..d27fd0881146136ddc45390d5c4273ccfa2ecb40 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 cb79b04eeb5cca7963539b7165cbdcb432dd4f2b..c6178a97606c5494801b91d06dfd0a8f27b26a0c 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 8a987285c1018c1d312c8934b9c4f2b149f91b3a..c95b7556d395a8dc7e9083fd372f80e1e5b07522 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.json +++ b/erpnext/selling/doctype/sales_order/sales_order.json @@ -1205,11 +1205,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 }, @@ -1713,7 +1716,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 a9ef2a2e4b5da6f61b6bcac6599bdc74b10f2224..a2f35a5d153eeddec3b932d0b2f2f7e71389df81 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 b9b83b414f9b7190308df6990c53768a44e4974c..aaacbca69447295b52c892f436ff6fdf74f76e68 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.json +++ b/erpnext/stock/doctype/delivery_note/delivery_note.json @@ -1045,9 +1045,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 }, @@ -1403,7 +1406,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 605faabea4cc2b9704849ca753dd9cc239288f9e..d63a590528eece1f89534a3fe6d2124fbfcd9886 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.py +++ b/erpnext/stock/doctype/delivery_note/delivery_note.py @@ -85,7 +85,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