Merge pull request #33244 from aerele/group-by-child-to-parent

fix: allow child-to-parent grouping in report view
This commit is contained in:
Ejaaz Khan 2025-07-08 18:01:08 +05:30 committed by GitHub
commit 0a64adbf9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,9 +246,12 @@ frappe.ui.GroupBy = class {
if (
this.group_by_doctype &&
this.aggregate_on_doctype &&
this.aggregate_on_doctype != this.doctype &&
this.group_by_doctype != this.aggregate_on_doctype
) {
frappe.msgprint(__("Parent-to-child or child-to-parent grouping is not allowed."));
frappe.msgprint(
__("Parent-to-child or child-to-different-child grouping is not allowed.")
);
return false;
}