Revert "fix: docfield of sales_order is not fetching route options for new doc (#21123)"
This reverts commit5c54adec28
. (cherry picked from commite5fe00cf58
)
This commit is contained in:
parent
023f35bed7
commit
c1bc819f18
@ -18,7 +18,7 @@ frappe.ui.form.on("Project", {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onload: function (frm) {
|
onload: function (frm) {
|
||||||
var so = frm.get_docfield("Project", "sales_order");
|
var so = frappe.meta.get_docfield("Project", "sales_order");
|
||||||
so.get_route_options_for_new_doc = function (field) {
|
so.get_route_options_for_new_doc = function (field) {
|
||||||
if (frm.is_new()) return;
|
if (frm.is_new()) return;
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user