Merge pull request #48582 from barredterra/sabb-translatability

fix: make labels in serial_batch_prompt translatable
This commit is contained in:
rohitwaghchaure
2025-07-15 11:53:59 +05:30
committed by GitHub

View File

@@ -55,14 +55,14 @@ frappe.ui.form.on("Serial and Batch Bundle", {
let fields = frm.events.get_prompt_fields(frm);
frm.add_custom_button(__("Make " + label), () => {
frm.add_custom_button(__("Make {0}", [label]), () => {
frappe.prompt(
fields,
(data) => {
frm.events.add_serial_batch(frm, data);
},
"Add " + label,
"Make " + label
__("Add {0}", [label]),
__("Make {0}", [label])
);
});
}