fix: get_valid_fields excludes show_on_timeline, breaking migrations
Co-authored-by: Gavin <gavin.dsouza@switchup.de>
This commit is contained in:
parent
8332341217
commit
a893341f95
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ class Meta(Document):
|
|||
|
||||
def get_valid_fields(self) -> list[str]:
|
||||
if not hasattr(self, "_valid_fields"):
|
||||
if frappe.flags.in_install and self.name in self.special_doctypes:
|
||||
if (frappe.flags.in_install or frappe.flags.in_migrate) and self.name in self.special_doctypes:
|
||||
self._valid_fields = get_table_columns(self.name)
|
||||
else:
|
||||
self._valid_fields = self.default_fields + [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue