Browse Source

fix: Populate ToDo.allocate_to column

version-14
Gavin D'souza 3 years ago
parent
commit
ff13b12be5
2 changed files with 13 additions and 0 deletions
  1. +1
    -0
      frappe/patches.txt
  2. +12
    -0
      frappe/patches/v14_0/transform_todo_schema.py

+ 1
- 0
frappe/patches.txt View File

@@ -190,3 +190,4 @@ frappe.patches.v14_0.update_github_endpoints #08-11-2021
frappe.patches.v14_0.remove_db_aggregation
frappe.patches.v14_0.save_ratings_in_fraction #23-12-2021
frappe.patches.v14_0.update_color_names_in_kanban_board_column
frappe.patches.v14_0.transform_todo_schema

+ 12
- 0
frappe/patches/v14_0/transform_todo_schema.py View File

@@ -0,0 +1,12 @@
import frappe
from frappe.query_builder.utils import DocType


def execute():
# Email Template & Help Article have owner field that doesn't have any additional functionality
# Only ToDo has to be updated.

ToDo = DocType("ToDo")
frappe.reload_doctype("ToDo", force=True)

frappe.qb.update(ToDo).set(ToDo.allocated_to, ToDo.owner).run()

Loading…
Cancel
Save