Merge pull request #11115 from scmmishra/fix-explicit-new-route
fix: route to new doc 1 explicitly
This commit is contained in:
commit
4b80829424
1 changed files with 2 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ export default class OnboardingWidget extends Widget {
|
|||
if (step.is_single) {
|
||||
route = `Form/${step.reference_document}`;
|
||||
} else {
|
||||
route = `Form/${step.reference_document}/${__('New')} ${__(step.reference_document)}`;
|
||||
route = `Form/${step.reference_document}/${__('New')} ${__(step.reference_document)} 1`;
|
||||
}
|
||||
|
||||
let current_route = frappe.get_route();
|
||||
|
|
@ -262,7 +262,7 @@ export default class OnboardingWidget extends Widget {
|
|||
frappe.route_hooks.after_save = callback;
|
||||
}
|
||||
|
||||
frappe.set_route(`Form/${step.reference_document}/${__('New')} ${__(step.reference_document)}`);
|
||||
frappe.set_route(`Form/${step.reference_document}/${__('New')} ${__(step.reference_document)} 1`);
|
||||
}
|
||||
|
||||
show_quick_entry(step) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue