Browse Source

[minor] language fields are now links

develop
Rushabh Mehta 8 years ago
parent
commit
fcb793e4dd
  1. 3
      erpnext/buying/doctype/supplier/supplier.js
  2. 6
      erpnext/buying/doctype/supplier/supplier.json
  3. 3
      erpnext/selling/doctype/customer/customer.js
  4. 6
      erpnext/selling/doctype/customer/customer.json
  5. 1
      test_sites/languages.txt

3
erpnext/buying/doctype/supplier/supplier.js

@ -2,9 +2,6 @@
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Supplier", {
before_load: function(frm) {
frappe.setup_language_field(frm);
},
refresh: function(frm) {
if(frappe.defaults.get_default("supp_master_name")!="Naming Series") {
frm.toggle_display("naming_series", false);

6
erpnext/buying/doctype/supplier/supplier.json

@ -224,7 +224,7 @@
"bold": 0,
"collapsible": 0,
"fieldname": "language",
"fieldtype": "Select",
"fieldtype": "Link",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
@ -233,7 +233,7 @@
"label": "Print Language",
"length": 0,
"no_copy": 0,
"options": "Loading...",
"options": "Language",
"permlevel": 0,
"precision": "",
"print_hide": 0,
@ -714,7 +714,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
"modified": "2016-07-25 05:20:29.238820",
"modified": "2016-08-23 05:43:20.950021",
"modified_by": "Administrator",
"module": "Buying",
"name": "Supplier",

3
erpnext/selling/doctype/customer/customer.js

@ -2,9 +2,6 @@
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Customer", {
before_load: function(frm) {
frappe.setup_language_field(frm);
},
refresh: function(frm) {
if(frappe.defaults.get_default("cust_master_name")!="Naming Series") {
frm.toggle_display("naming_series", false);

6
erpnext/selling/doctype/customer/customer.json

@ -430,7 +430,7 @@
"bold": 0,
"collapsible": 0,
"fieldname": "language",
"fieldtype": "Select",
"fieldtype": "Link",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
@ -439,7 +439,7 @@
"label": "Print Language",
"length": 0,
"no_copy": 0,
"options": "Loading...",
"options": "Language",
"permlevel": 0,
"precision": "",
"print_hide": 0,
@ -957,7 +957,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
"modified": "2016-07-25 05:20:22.976925",
"modified": "2016-08-23 05:43:04.309480",
"modified_by": "Administrator",
"module": "Selling",
"name": "Customer",

1
test_sites/languages.txt

@ -1 +0,0 @@
en english
Loading…
Cancel
Save