fix: language in sales transactions

This commit is contained in:
barredterra
2024-04-20 01:24:35 +02:00
parent 29153ed3b4
commit eb119dcb4d
8 changed files with 22 additions and 13 deletions

View File

@@ -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-04-11 11:30:26.272441",
"modified": "2024-04-20 01:21:44.055127",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice",

View File

@@ -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

View File

@@ -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",

View File

@@ -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

View File

@@ -1195,11 +1195,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
},
@@ -1658,7 +1661,7 @@
"idx": 105,
"is_submittable": 1,
"links": [],
"modified": "2024-03-29 16:27:41.539613",
"modified": "2024-04-20 01:20:11.190908",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order",

View File

@@ -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

View File

@@ -1046,9 +1046,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
},
@@ -1397,7 +1400,7 @@
"idx": 146,
"is_submittable": 1,
"links": [],
"modified": "2024-03-27 13:06:49.519676",
"modified": "2024-04-20 01:18:20.679692",
"modified_by": "Administrator",
"module": "Stock",
"name": "Delivery Note",

View File

@@ -83,7 +83,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