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