From 1156aced0858e4006dd21a9e3b3d13fd7b40b11c Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Mon, 7 Jul 2025 16:01:25 +0530 Subject: [PATCH] fix: allow child-to-parent grouping in report view --- frappe/public/js/frappe/ui/group_by/group_by.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/ui/group_by/group_by.js b/frappe/public/js/frappe/ui/group_by/group_by.js index 63eb1d4d6e..a6548b7771 100644 --- a/frappe/public/js/frappe/ui/group_by/group_by.js +++ b/frappe/public/js/frappe/ui/group_by/group_by.js @@ -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; }