Merge pull request #30907 from akhilnarang/fixup-27805

fix(report_view): skip read_only condition checking for reportview
This commit is contained in:
Akhil Narang 2025-01-28 16:05:59 +05:30 committed by GitHub
parent 47fd3386fd
commit 9720ff2a8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -714,6 +714,8 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
!df.hidden &&
// not a standard field i.e., owner, modified_by, etc.
frappe.model.is_non_std_field(df.fieldname) &&
// don't check read_only_depends_on if there's child table fields
!this.meta.fields.some((df) => df.fieldtype === "Table") &&
df.read_only_depends_on &&
!this.evaluate_read_only_depends_on(df.read_only_depends_on, data)
);