chore: fix Opportunity filter - use party_name + opportunity_from (customer field does not exist on Opportunity doctype)
This commit is contained in:
parent
11b1972f97
commit
9f2cad6b59
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Service Factory — ERPNext Custom App Project
|
# Service Factory — ERPNext Custom App Project
|
||||||
|
|
||||||
> **Current Version: V0.1.0026** — Each completed prompt/step increments the patch number by 1 (V0.1.0000 → V0.1.0001 → V0.1.0002…). The agent automatically commits and pushes after every step.
|
> **Current Version: V0.1.0027** — Each completed prompt/step increments the patch number by 1 (V0.1.0000 → V0.1.0001 → V0.1.0002…). The agent automatically commits and pushes after every step.
|
||||||
|
|
||||||
## Project Overview
|
## Project Overview
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ frappe.ui.form.on("Engagement Card", {
|
||||||
if (!frm.doc.customer) {
|
if (!frm.doc.customer) {
|
||||||
return { filters: { name: "" } };
|
return { filters: { name: "" } };
|
||||||
}
|
}
|
||||||
return { filters: { customer: frm.doc.customer } };
|
return { filters: { opportunity_from: "Customer", party_name: frm.doc.customer } };
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
|
|
@ -102,7 +102,7 @@ frappe.ui.form.on("Engagement Card", {
|
||||||
if (!frm.doc.customer) {
|
if (!frm.doc.customer) {
|
||||||
return { filters: { name: "" } };
|
return { filters: { name: "" } };
|
||||||
}
|
}
|
||||||
return { filters: { customer: frm.doc.customer } };
|
return { filters: { opportunity_from: "Customer", party_name: frm.doc.customer } };
|
||||||
});
|
});
|
||||||
|
|
||||||
update_opportunity_state(frm);
|
update_opportunity_state(frm);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue