Skip to content

Commit

Permalink
feat: improve visibility of default values
Browse files Browse the repository at this point in the history
(cherry picked from commit 8717148)
  • Loading branch information
barredterra authored and mergify[bot] committed Dec 17, 2022
1 parent 07cda0a commit 7ff50b9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ frappe.ui.form.on("Request for Quotation",{
label: "Print Format",
fieldname: "print_format",
options: "Print Format",
placeholder: "Standard",
get_query: () => {
return {
filters: {
Expand All @@ -108,12 +109,14 @@ frappe.ui.form.on("Request for Quotation",{
label: "Language",
fieldname: "language",
options: "Language",
default: frappe.boot.lang,
},
{
fieldtype: "Link",
label: "Letter Head",
fieldname: "letter_head",
options: "Letter Head",
default: frm.doc.letter_head,
},
],
(data) => {
Expand All @@ -126,7 +129,7 @@ frappe.ui.form.on("Request for Quotation",{
supplier: data.supplier,
print_format: data.print_format || "Standard",
language: data.language || frappe.boot.lang,
letter_head: data.letter_head || "",
letter_head: data.letter_head || frm.doc.letter_head || "",
}).toString()
)
);
Expand Down

0 comments on commit 7ff50b9

Please sign in to comment.