瀏覽代碼

fix: Don't reset creation dates in install

version-14
Gavin D'souza 3 年之前
父節點
當前提交
7d04541b68
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/model/document.py

+ 1
- 1
frappe/model/document.py 查看文件

@@ -471,7 +471,7 @@ class Document(BaseDocument):


# We'd probably want the creation and owner to be set via API # We'd probably want the creation and owner to be set via API
# or Data import at some point, that'd have to be handled here # or Data import at some point, that'd have to be handled here
if self.is_new() and not (frappe.flags.in_patch or frappe.flags.in_migrate):
if self.is_new() and not (frappe.flags.in_install or frappe.flags.in_patch or frappe.flags.in_migrate):
self.creation = self.modified self.creation = self.modified
self.owner = self.modified_by self.owner = self.modified_by




Loading…
取消
儲存