From bb58e7aebe24da326a1deee7e81308d3021b7874 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 25 Jun 2025 12:51:42 +0530 Subject: [PATCH] fix: Don't update computed tables --- frappe/model/document.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/model/document.py b/frappe/model/document.py index 13d14c45e3..f877d61ed9 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -590,6 +590,8 @@ class Document(BaseDocument): def update_child_table(self, fieldname: str, df: Optional["DocField"] = None): """sync child table for given fieldname""" df: DocField = df or self.meta.get_field(fieldname) + if df.is_virtual: + return all_rows = self.get(df.fieldname) # delete rows that do not match the ones in the document