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:
commit
0a64adbf9e
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue