diff --git a/cypress/fixtures/child_table_doctype.js b/cypress/fixtures/child_table_doctype.js index 88a925aca3..001eb638a8 100644 --- a/cypress/fixtures/child_table_doctype.js +++ b/cypress/fixtures/child_table_doctype.js @@ -24,7 +24,7 @@ export default { naming_rule: "By fieldname", owner: "Administrator", permissions: [], - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/child_table_doctype_1.js b/cypress/fixtures/child_table_doctype_1.js index abf8873bff..a13983df3c 100644 --- a/cypress/fixtures/child_table_doctype_1.js +++ b/cypress/fixtures/child_table_doctype_1.js @@ -53,7 +53,7 @@ export default { naming_rule: "By fieldname", owner: "Administrator", permissions: [], - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/custom_submittable_doctype.js b/cypress/fixtures/custom_submittable_doctype.js index 30aa698db4..6b100cd796 100644 --- a/cypress/fixtures/custom_submittable_doctype.js +++ b/cypress/fixtures/custom_submittable_doctype.js @@ -47,7 +47,7 @@ export default { }, ], quick_entry: 1, - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/data_field_validation_doctype.js b/cypress/fixtures/data_field_validation_doctype.js index 2901630d3f..01d17a4383 100644 --- a/cypress/fixtures/data_field_validation_doctype.js +++ b/cypress/fixtures/data_field_validation_doctype.js @@ -59,7 +59,7 @@ export default { }, ], quick_entry: 1, - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/datetime_doctype.js b/cypress/fixtures/datetime_doctype.js index f1a77ba6bb..4ecfd0f5ba 100644 --- a/cypress/fixtures/datetime_doctype.js +++ b/cypress/fixtures/datetime_doctype.js @@ -42,7 +42,7 @@ export default { }, ], quick_entry: 1, - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/doctype_to_link.js b/cypress/fixtures/doctype_to_link.js index ff5d1b5c68..8a2c5bb1a8 100644 --- a/cypress/fixtures/doctype_to_link.js +++ b/cypress/fixtures/doctype_to_link.js @@ -39,7 +39,7 @@ export default { write: 1, }, ], - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/doctype_with_child_table.js b/cypress/fixtures/doctype_with_child_table.js index 7caba516cf..f3c9f13848 100644 --- a/cypress/fixtures/doctype_with_child_table.js +++ b/cypress/fixtures/doctype_with_child_table.js @@ -46,7 +46,7 @@ export default { write: 1, }, ], - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/doctype_with_phone.js b/cypress/fixtures/doctype_with_phone.js index 06a24a5be5..a7d4e6803a 100644 --- a/cypress/fixtures/doctype_with_phone.js +++ b/cypress/fixtures/doctype_with_phone.js @@ -40,7 +40,7 @@ export default { cancel: 1, }, ], - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/doctype_with_tab_break.js b/cypress/fixtures/doctype_with_tab_break.js index 44d6c16682..61142b911d 100644 --- a/cypress/fixtures/doctype_with_tab_break.js +++ b/cypress/fixtures/doctype_with_tab_break.js @@ -48,7 +48,7 @@ export default { ], quick_entry: 1, autoname: "format: Test-{####}", - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/cypress/fixtures/form_builder_doctype.js b/cypress/fixtures/form_builder_doctype.js index 995971bed4..5b39970503 100644 --- a/cypress/fixtures/form_builder_doctype.js +++ b/cypress/fixtures/form_builder_doctype.js @@ -65,7 +65,7 @@ export default { write: 1, }, ], - sort_field: "modified", + sort_field: "creation", sort_order: "ASC", track_changes: 1, }; diff --git a/frappe/__init__.py b/frappe/__init__.py index 59d6e2fb72..4b7c77904b 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -2045,7 +2045,7 @@ def get_list(doctype, *args, **kwargs): :param doctype: DocType on which query is to be made. :param fields: List of fields or `*`. :param filters: List of filters (see example). - :param order_by: Order By e.g. `modified desc`. + :param order_by: Order By e.g. `creation desc`. :param limit_start: Start results at record #. Default 0. :param limit_page_length: No of records in the page. Default 20. @@ -2069,7 +2069,7 @@ def get_all(doctype, *args, **kwargs): :param doctype: DocType on which query is to be made. :param fields: List of fields or `*`. Default is: `["name"]`. :param filters: List of filters (see example). - :param order_by: Order By e.g. `modified desc`. + :param order_by: Order By e.g. `creation desc`. :param limit_start: Start results at record #. Default 0. :param limit_page_length: No of records in the page. Default 20. diff --git a/frappe/automation/doctype/assignment_rule/assignment_rule.json b/frappe/automation/doctype/assignment_rule/assignment_rule.json index 541d176967..b370274cf6 100644 --- a/frappe/automation/doctype/assignment_rule/assignment_rule.json +++ b/frappe/automation/doctype/assignment_rule/assignment_rule.json @@ -154,10 +154,11 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2021-07-16 22:51:35.505575", + "modified": "2024-03-23 16:01:27.590910", "modified_by": "Administrator", "module": "Automation", "name": "Assignment Rule", + "naming_rule": "Set by user", "owner": "Administrator", "permissions": [ { @@ -173,7 +174,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/automation/doctype/assignment_rule_day/assignment_rule_day.json b/frappe/automation/doctype/assignment_rule_day/assignment_rule_day.json index 2a4187965c..00bf6a8345 100644 --- a/frappe/automation/doctype/assignment_rule_day/assignment_rule_day.json +++ b/frappe/automation/doctype/assignment_rule_day/assignment_rule_day.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-09-21 16:52:01.705351", "doctype": "DocType", "editable_grid": 1, @@ -16,13 +17,15 @@ } ], "istable": 1, - "modified": "2019-09-21 16:55:09.376291", + "links": [], + "modified": "2024-03-23 16:01:27.759155", "modified_by": "Administrator", "module": "Automation", "name": "Assignment Rule Day", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/automation/doctype/assignment_rule_user/assignment_rule_user.json b/frappe/automation/doctype/assignment_rule_user/assignment_rule_user.json index 5a159c8267..79ef550de8 100644 --- a/frappe/automation/doctype/assignment_rule_user/assignment_rule_user.json +++ b/frappe/automation/doctype/assignment_rule_user/assignment_rule_user.json @@ -1,6 +1,5 @@ { "actions": [], - "allow_read": 1, "creation": "2019-02-27 11:41:46.602400", "doctype": "DocType", "editable_grid": 1, @@ -21,14 +20,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2020-09-29 20:12:14.456785", + "modified": "2024-03-23 16:01:27.847608", "modified_by": "Administrator", "module": "Automation", "name": "Assignment Rule User", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/automation/doctype/auto_repeat/auto_repeat.json b/frappe/automation/doctype/auto_repeat/auto_repeat.json index 74965346fd..9f5f151f5c 100644 --- a/frappe/automation/doctype/auto_repeat/auto_repeat.json +++ b/frappe/automation/doctype/auto_repeat/auto_repeat.json @@ -211,7 +211,7 @@ } ], "links": [], - "modified": "2021-01-12 09:24:49.719611", + "modified": "2024-03-23 16:01:28.502039", "modified_by": "Administrator", "module": "Automation", "name": "Auto Repeat", @@ -255,8 +255,9 @@ } ], "search_fields": "reference_document", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "title_field": "reference_document", "track_changes": 1 } \ No newline at end of file diff --git a/frappe/automation/doctype/auto_repeat_day/auto_repeat_day.json b/frappe/automation/doctype/auto_repeat_day/auto_repeat_day.json index 6f5c3060cd..6fb47f86a7 100644 --- a/frappe/automation/doctype/auto_repeat_day/auto_repeat_day.json +++ b/frappe/automation/doctype/auto_repeat_day/auto_repeat_day.json @@ -20,14 +20,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2020-11-10 22:30:53.690228", + "modified": "2024-03-23 16:01:28.738641", "modified_by": "Administrator", "module": "Automation", "name": "Auto Repeat Day", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/automation/doctype/milestone/milestone.json b/frappe/automation/doctype/milestone/milestone.json index db3d61b2fd..5ed3502592 100644 --- a/frappe/automation/doctype/milestone/milestone.json +++ b/frappe/automation/doctype/milestone/milestone.json @@ -53,7 +53,7 @@ ], "in_create": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:29.694506", "modified_by": "Administrator", "module": "Automation", "name": "Milestone", @@ -73,7 +73,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "reference_type", diff --git a/frappe/automation/doctype/milestone_tracker/milestone_tracker.json b/frappe/automation/doctype/milestone_tracker/milestone_tracker.json index f0dc452c8d..438f616a67 100644 --- a/frappe/automation/doctype/milestone_tracker/milestone_tracker.json +++ b/frappe/automation/doctype/milestone_tracker/milestone_tracker.json @@ -35,7 +35,7 @@ } ], "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:29.801483", "modified_by": "Administrator", "module": "Automation", "name": "Milestone Tracker", @@ -54,7 +54,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/automation/doctype/milestone_tracker/test_milestone_tracker.py b/frappe/automation/doctype/milestone_tracker/test_milestone_tracker.py index 2fba6bf4ad..aff6a4863a 100644 --- a/frappe/automation/doctype/milestone_tracker/test_milestone_tracker.py +++ b/frappe/automation/doctype/milestone_tracker/test_milestone_tracker.py @@ -34,7 +34,7 @@ class TestMilestoneTracker(FrappeTestCase): "Milestone", fields=["track_field", "value", "milestone_tracker"], filters=dict(reference_type=todo.doctype, reference_name=todo.name), - order_by="modified desc", + order_by="creation desc", ) self.assertEqual(len(milestones), 2) diff --git a/frappe/automation/doctype/reminder/reminder.json b/frappe/automation/doctype/reminder/reminder.json index 07dbe7725f..cf62e3fa5e 100644 --- a/frappe/automation/doctype/reminder/reminder.json +++ b/frappe/automation/doctype/reminder/reminder.json @@ -66,7 +66,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 22:17:18.351025", + "modified": "2024-03-23 16:03:36.224060", "modified_by": "Administrator", "module": "Automation", "name": "Reminder", @@ -83,7 +83,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "description" diff --git a/frappe/contacts/doctype/address/address.json b/frappe/contacts/doctype/address/address.json index 54d6b03739..842acb2c89 100644 --- a/frappe/contacts/doctype/address/address.json +++ b/frappe/contacts/doctype/address/address.json @@ -150,7 +150,7 @@ "icon": "fa fa-map-marker", "idx": 5, "links": [], - "modified": "2023-11-20 17:28:41.698356", + "modified": "2024-03-23 16:01:27.068028", "modified_by": "Administrator", "module": "Contacts", "name": "Address", @@ -220,7 +220,7 @@ } ], "search_fields": "country, state", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/contacts/doctype/address_template/address_template.json b/frappe/contacts/doctype/address_template/address_template.json index 58b8210a49..30f4818355 100644 --- a/frappe/contacts/doctype/address_template/address_template.json +++ b/frappe/contacts/doctype/address_template/address_template.json @@ -20,7 +20,6 @@ "label": "Country", "options": "Country", "reqd": 1, - "search_index": 1, "unique": 1 }, { @@ -40,7 +39,7 @@ ], "icon": "fa fa-map-marker", "links": [], - "modified": "2022-08-03 12:20:49.095228", + "modified": "2024-03-23 16:01:27.242795", "modified_by": "Administrator", "module": "Contacts", "name": "Address Template", @@ -58,7 +57,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] -} +} \ No newline at end of file diff --git a/frappe/contacts/doctype/contact/contact.json b/frappe/contacts/doctype/contact/contact.json index 83d1002acb..8011d5f4e8 100644 --- a/frappe/contacts/doctype/contact/contact.json +++ b/frappe/contacts/doctype/contact/contact.json @@ -257,7 +257,7 @@ "image_field": "image", "index_web_pages_for_search": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:01:30.937045", "modified_by": "Administrator", "module": "Contacts", "name": "Contact", @@ -391,7 +391,7 @@ } ], "show_title_field_in_link": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "full_name" diff --git a/frappe/contacts/doctype/contact_email/contact_email.json b/frappe/contacts/doctype/contact_email/contact_email.json index f36e155a75..f57149db1a 100644 --- a/frappe/contacts/doctype/contact_email/contact_email.json +++ b/frappe/contacts/doctype/contact_email/contact_email.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-08-02 13:08:59.291097", "doctype": "DocType", "editable_grid": 1, @@ -26,14 +27,16 @@ } ], "istable": 1, - "modified": "2019-09-24 17:47:30.565805", + "links": [], + "modified": "2024-03-23 16:01:31.173691", "modified_by": "Administrator", "module": "Contacts", "name": "Contact Email", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/contacts/doctype/contact_phone/contact_phone.json b/frappe/contacts/doctype/contact_phone/contact_phone.json index 5412e4a1b7..7d57135078 100644 --- a/frappe/contacts/doctype/contact_phone/contact_phone.json +++ b/frappe/contacts/doctype/contact_phone/contact_phone.json @@ -37,14 +37,15 @@ ], "istable": 1, "links": [], - "modified": "2020-04-06 18:28:10.486220", + "modified": "2024-03-23 16:01:31.293047", "modified_by": "Administrator", "module": "Contacts", "name": "Contact Phone", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/contacts/doctype/gender/gender.json b/frappe/contacts/doctype/gender/gender.json index 34e1ddaee6..74c0646298 100644 --- a/frappe/contacts/doctype/gender/gender.json +++ b/frappe/contacts/doctype/gender/gender.json @@ -17,7 +17,7 @@ } ], "links": [], - "modified": "2022-08-05 18:33:28.043370", + "modified": "2024-03-23 16:03:26.299387", "modified_by": "Administrator", "module": "Contacts", "name": "Gender", @@ -40,7 +40,7 @@ "role": "All" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1, diff --git a/frappe/contacts/doctype/salutation/salutation.json b/frappe/contacts/doctype/salutation/salutation.json index 98ed082e69..ba878d3096 100644 --- a/frappe/contacts/doctype/salutation/salutation.json +++ b/frappe/contacts/doctype/salutation/salutation.json @@ -18,7 +18,7 @@ } ], "links": [], - "modified": "2022-08-05 18:33:28.196387", + "modified": "2024-03-23 16:03:37.726490", "modified_by": "Administrator", "module": "Contacts", "name": "Salutation", @@ -53,7 +53,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1, diff --git a/frappe/core/api/file.py b/frappe/core/api/file.py index 7756fd274b..5e29ba9f99 100644 --- a/frappe/core/api/file.py +++ b/frappe/core/api/file.py @@ -76,7 +76,7 @@ def get_files_by_search_text(text: str) -> list[dict]: "file_url": text, "name": ("like", text), }, - order_by="modified desc", + order_by="creation desc", limit=20, ) diff --git a/frappe/core/doctype/access_log/access_log.json b/frappe/core/doctype/access_log/access_log.json index 69803ef05a..044ba9c90a 100644 --- a/frappe/core/doctype/access_log/access_log.json +++ b/frappe/core/doctype/access_log/access_log.json @@ -131,7 +131,7 @@ } ], "links": [], - "modified": "2022-06-13 05:59:26.866004", + "modified": "2024-03-23 16:01:26.702078", "modified_by": "Administrator", "module": "Core", "name": "Access Log", @@ -149,7 +149,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_seen": 1 diff --git a/frappe/core/doctype/access_log/access_log.py b/frappe/core/doctype/access_log/access_log.py index 15723ac1a7..c9ae402839 100644 --- a/frappe/core/doctype/access_log/access_log.py +++ b/frappe/core/doctype/access_log/access_log.py @@ -34,7 +34,7 @@ class AccessLog(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("Access Log") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) @frappe.whitelist() diff --git a/frappe/core/doctype/activity_log/activity_log.json b/frappe/core/doctype/activity_log/activity_log.json index 3943fc1196..ae6ebd1dc9 100644 --- a/frappe/core/doctype/activity_log/activity_log.json +++ b/frappe/core/doctype/activity_log/activity_log.json @@ -158,7 +158,7 @@ "icon": "fa fa-comment", "index_web_pages_for_search": 1, "links": [], - "modified": "2024-02-24 16:31:16.253153", + "modified": "2024-03-23 16:01:26.898094", "modified_by": "Administrator", "module": "Core", "name": "Activity Log", @@ -173,7 +173,7 @@ } ], "search_fields": "subject", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "subject", diff --git a/frappe/core/doctype/activity_log/activity_log.py b/frappe/core/doctype/activity_log/activity_log.py index 25605becfc..aa764ab002 100644 --- a/frappe/core/doctype/activity_log/activity_log.py +++ b/frappe/core/doctype/activity_log/activity_log.py @@ -60,7 +60,7 @@ class ActivityLog(Document): if not days: days = 90 doctype = DocType("Activity Log") - frappe.db.delete(doctype, filters=(doctype.modified < (Now() - Interval(days=days)))) + frappe.db.delete(doctype, filters=(doctype.creation < (Now() - Interval(days=days)))) def on_doctype_update(): diff --git a/frappe/core/doctype/amended_document_naming_settings/amended_document_naming_settings.json b/frappe/core/doctype/amended_document_naming_settings/amended_document_naming_settings.json index 2892cc6091..7dcc110673 100644 --- a/frappe/core/doctype/amended_document_naming_settings/amended_document_naming_settings.json +++ b/frappe/core/doctype/amended_document_naming_settings/amended_document_naming_settings.json @@ -32,13 +32,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2023-06-16 18:26:16.247475", + "modified": "2024-03-23 16:01:27.410335", "modified_by": "Administrator", "module": "Core", "name": "Amended Document Naming Settings", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/audit_trail/audit_trail.json b/frappe/core/doctype/audit_trail/audit_trail.json index 762861eedb..8a6f4af596 100644 --- a/frappe/core/doctype/audit_trail/audit_trail.json +++ b/frappe/core/doctype/audit_trail/audit_trail.json @@ -99,7 +99,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2023-10-31 13:12:41.749483", + "modified": "2024-03-23 16:01:28.029916", "modified_by": "Administrator", "module": "Core", "name": "Audit Trail", @@ -114,7 +114,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/block_module/block_module.json b/frappe/core/doctype/block_module/block_module.json index 9711aaa001..35db3080e5 100644 --- a/frappe/core/doctype/block_module/block_module.json +++ b/frappe/core/doctype/block_module/block_module.json @@ -19,13 +19,13 @@ ], "istable": 1, "links": [], - "modified": "2022-08-03 12:20:52.738977", + "modified": "2024-03-23 16:01:28.830117", "modified_by": "Administrator", "module": "Core", "name": "Block Module", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/comment/comment.json b/frappe/core/doctype/comment/comment.json index 529c1d234c..50ab1252fe 100644 --- a/frappe/core/doctype/comment/comment.json +++ b/frappe/core/doctype/comment/comment.json @@ -99,7 +99,7 @@ } ], "links": [], - "modified": "2023-07-24 13:52:55.651462", + "modified": "2024-03-23 16:01:30.075730", "modified_by": "Administrator", "module": "Core", "name": "Comment", @@ -131,7 +131,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "comment_type", diff --git a/frappe/core/doctype/communication/communication.json b/frappe/core/doctype/communication/communication.json index 3299d7ef05..c8d58db89f 100644 --- a/frappe/core/doctype/communication/communication.json +++ b/frappe/core/doctype/communication/communication.json @@ -402,7 +402,7 @@ "idx": 1, "links": [], "make_attachments_public": 1, - "modified": "2024-02-09 12:10:01.200845", + "modified": "2024-03-23 16:01:30.219380", "modified_by": "Administrator", "module": "Core", "name": "Communication", @@ -459,7 +459,7 @@ ], "search_fields": "subject", "sender_field": "sender", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "subject_field": "subject", diff --git a/frappe/core/doctype/communication_link/communication_link.json b/frappe/core/doctype/communication_link/communication_link.json index 1dd051bed2..9a6b5dcff3 100644 --- a/frappe/core/doctype/communication_link/communication_link.json +++ b/frappe/core/doctype/communication_link/communication_link.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-05-21 09:47:23.043960", "doctype": "DocType", "editable_grid": 1, @@ -34,14 +35,16 @@ } ], "istable": 1, - "modified": "2019-05-21 09:47:23.043960", + "links": [], + "modified": "2024-03-23 16:01:30.438791", "modified_by": "Administrator", "module": "Core", "name": "Communication Link", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/custom_docperm/custom_docperm.json b/frappe/core/doctype/custom_docperm/custom_docperm.json index 208b0beef9..eb9dcdfe0a 100644 --- a/frappe/core/doctype/custom_docperm/custom_docperm.json +++ b/frappe/core/doctype/custom_docperm/custom_docperm.json @@ -215,7 +215,7 @@ } ], "links": [], - "modified": "2023-02-20 13:19:04.889081", + "modified": "2024-03-23 16:02:14.726078", "modified_by": "Administrator", "module": "Core", "name": "Custom DocPerm", @@ -235,7 +235,8 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", + "states": [], "title_field": "parent" } \ No newline at end of file diff --git a/frappe/core/doctype/custom_role/custom_role.json b/frappe/core/doctype/custom_role/custom_role.json index 7504882caf..12f937eb25 100644 --- a/frappe/core/doctype/custom_role/custom_role.json +++ b/frappe/core/doctype/custom_role/custom_role.json @@ -50,7 +50,7 @@ } ], "links": [], - "modified": "2022-08-03 12:20:52.985554", + "modified": "2024-03-23 16:02:15.554679", "modified_by": "Administrator", "module": "Core", "name": "Custom Role", @@ -70,7 +70,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/data_export/data_export.json b/frappe/core/doctype/data_export/data_export.json index f63d939499..6b199b2041 100644 --- a/frappe/core/doctype/data_export/data_export.json +++ b/frappe/core/doctype/data_export/data_export.json @@ -60,7 +60,7 @@ "hide_toolbar": 1, "issingle": 1, "links": [], - "modified": "2022-09-28 03:51:02.404681", + "modified": "2024-03-23 16:02:16.856404", "modified_by": "Administrator", "module": "Core", "name": "Data Export", @@ -78,7 +78,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/data_import/data_import.json b/frappe/core/doctype/data_import/data_import.json index 02d65c8004..6325e139fd 100644 --- a/frappe/core/doctype/data_import/data_import.json +++ b/frappe/core/doctype/data_import/data_import.json @@ -171,7 +171,7 @@ ], "hide_toolbar": 1, "links": [], - "modified": "2024-01-30 17:08:05.566686", + "modified": "2024-03-23 16:02:16.953820", "modified_by": "Administrator", "module": "Core", "name": "Data Import", @@ -191,7 +191,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/data_import_log/data_import_log.json b/frappe/core/doctype/data_import_log/data_import_log.json index b1d991f099..e76a1c1169 100644 --- a/frappe/core/doctype/data_import_log/data_import_log.json +++ b/frappe/core/doctype/data_import_log/data_import_log.json @@ -60,7 +60,7 @@ "in_create": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2021-12-29 11:19:19.646076", + "modified": "2024-03-23 16:02:17.334396", "modified_by": "Administrator", "module": "Core", "name": "Data Import Log", @@ -79,6 +79,7 @@ "write": 1 } ], - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/defaultvalue/defaultvalue.json b/frappe/core/doctype/defaultvalue/defaultvalue.json index 22e2583774..79342770f6 100644 --- a/frappe/core/doctype/defaultvalue/defaultvalue.json +++ b/frappe/core/doctype/defaultvalue/defaultvalue.json @@ -35,13 +35,13 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2022-08-03 12:20:54.832785", + "modified": "2024-03-23 16:02:17.533639", "modified_by": "Administrator", "module": "Core", "name": "DefaultValue", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/deleted_document/deleted_document.json b/frappe/core/doctype/deleted_document/deleted_document.json index 6b95a523c1..1c8a2cf951 100644 --- a/frappe/core/doctype/deleted_document/deleted_document.json +++ b/frappe/core/doctype/deleted_document/deleted_document.json @@ -60,7 +60,7 @@ ], "in_create": 1, "links": [], - "modified": "2022-06-13 05:50:58.314908", + "modified": "2024-03-23 16:02:17.664513", "modified_by": "Administrator", "module": "Core", "name": "Deleted Document", @@ -73,7 +73,7 @@ "role": "System Manager" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "deleted_name", diff --git a/frappe/core/doctype/deleted_document/deleted_document.py b/frappe/core/doctype/deleted_document/deleted_document.py index fb5fc6f5cb..be5fc1b0ff 100644 --- a/frappe/core/doctype/deleted_document/deleted_document.py +++ b/frappe/core/doctype/deleted_document/deleted_document.py @@ -34,7 +34,7 @@ class DeletedDocument(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("Deleted Document") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) @frappe.whitelist() diff --git a/frappe/core/doctype/docfield/docfield.json b/frappe/core/doctype/docfield/docfield.json index e383e51dce..08820719ca 100644 --- a/frappe/core/doctype/docfield/docfield.json +++ b/frappe/core/doctype/docfield/docfield.json @@ -582,14 +582,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-03-21 17:35:32.602933", + "modified": "2024-03-23 16:02:18.210626", "modified_by": "Administrator", "module": "Core", "name": "DocField", "naming_rule": "Random", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", "states": [] -} +} \ No newline at end of file diff --git a/frappe/core/doctype/docperm/docperm.json b/frappe/core/doctype/docperm/docperm.json index 3ce49c4d6b..1b6e7fffc7 100644 --- a/frappe/core/doctype/docperm/docperm.json +++ b/frappe/core/doctype/docperm/docperm.json @@ -210,12 +210,13 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2023-02-20 13:21:45.071310", + "modified": "2024-03-23 16:02:18.443496", "modified_by": "Administrator", "module": "Core", "name": "DocPerm", "owner": "Administrator", "permissions": [], - "sort_field": "modified", - "sort_order": "ASC" + "sort_field": "creation", + "sort_order": "ASC", + "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/docshare/docshare.json b/frappe/core/doctype/docshare/docshare.json index e3581f516e..73ab33102a 100644 --- a/frappe/core/doctype/docshare/docshare.json +++ b/frappe/core/doctype/docshare/docshare.json @@ -86,7 +86,7 @@ ], "in_create": 1, "links": [], - "modified": "2023-06-15 18:02:51.877533", + "modified": "2024-03-23 16:03:21.134272", "modified_by": "Administrator", "module": "Core", "name": "DocShare", @@ -106,7 +106,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/doctype/doctype.json b/frappe/core/doctype/doctype/doctype.json index 25d4bd78f2..0f97b077ab 100644 --- a/frappe/core/doctype/doctype/doctype.json +++ b/frappe/core/doctype/doctype/doctype.json @@ -333,7 +333,7 @@ "label": "Default Print Format" }, { - "default": "modified", + "default": "creation", "depends_on": "eval:!doc.istable", "fieldname": "sort_field", "fieldtype": "Data", @@ -750,7 +750,7 @@ "link_fieldname": "reference_doctype" } ], - "modified": "2023-12-01 18:37:16.799471", + "modified": "2024-03-23 16:03:21.405959", "modified_by": "Administrator", "module": "Core", "name": "DocType", @@ -782,7 +782,7 @@ "route": "doctype", "search_fields": "module", "show_name_in_global_search": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1, diff --git a/frappe/core/doctype/doctype_action/doctype_action.json b/frappe/core/doctype/doctype_action/doctype_action.json index 080755c479..5e78a19228 100644 --- a/frappe/core/doctype/doctype_action/doctype_action.json +++ b/frappe/core/doctype/doctype_action/doctype_action.json @@ -61,14 +61,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2020-09-24 14:19:05.549835", + "modified": "2024-03-23 16:03:21.873210", "modified_by": "Administrator", "module": "Core", "name": "DocType Action", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/doctype_link/doctype_link.json b/frappe/core/doctype/doctype_link/doctype_link.json index 4baec6746d..b0577aa288 100644 --- a/frappe/core/doctype/doctype_link/doctype_link.json +++ b/frappe/core/doctype/doctype_link/doctype_link.json @@ -74,14 +74,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-07-31 15:23:12.237491", + "modified": "2024-03-23 16:03:22.273487", "modified_by": "Administrator", "module": "Core", "name": "DocType Link", "owner": "Administrator", "permissions": [], - "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/doctype_state/doctype_state.json b/frappe/core/doctype/doctype_state/doctype_state.json index 79797b41c5..f1b7f85b73 100644 --- a/frappe/core/doctype/doctype_state/doctype_state.json +++ b/frappe/core/doctype/doctype_state/doctype_state.json @@ -37,13 +37,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-12-14 14:14:55.716378", + "modified": "2024-03-23 16:03:22.416470", "modified_by": "Administrator", "module": "Core", "name": "DocType State", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/document_naming_rule_condition/document_naming_rule_condition.json b/frappe/core/doctype/document_naming_rule_condition/document_naming_rule_condition.json index 781566b7d1..b2d37298ce 100644 --- a/frappe/core/doctype/document_naming_rule_condition/document_naming_rule_condition.json +++ b/frappe/core/doctype/document_naming_rule_condition/document_naming_rule_condition.json @@ -36,14 +36,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2020-09-08 10:19:56.192949", + "modified": "2024-03-23 16:03:22.677527", "modified_by": "Administrator", "module": "Core", "name": "Document Naming Rule Condition", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/document_naming_settings/document_naming_settings.json b/frappe/core/doctype/document_naming_settings/document_naming_settings.json index 5a1991c14b..b7c89fd6ca 100644 --- a/frappe/core/doctype/document_naming_settings/document_naming_settings.json +++ b/frappe/core/doctype/document_naming_settings/document_naming_settings.json @@ -143,7 +143,7 @@ "icon": "fa fa-sort-by-order", "issingle": 1, "links": [], - "modified": "2023-06-20 17:47:52.204139", + "modified": "2024-03-23 16:03:22.769200", "modified_by": "Administrator", "module": "Core", "name": "Document Naming Settings", @@ -159,7 +159,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/document_share_key/document_share_key.json b/frappe/core/doctype/document_share_key/document_share_key.json index b96fe09f0b..08b2595411 100644 --- a/frappe/core/doctype/document_share_key/document_share_key.json +++ b/frappe/core/doctype/document_share_key/document_share_key.json @@ -46,7 +46,7 @@ "in_create": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2022-01-14 13:57:28.050678", + "modified": "2024-03-23 16:03:22.892995", "modified_by": "Administrator", "module": "Core", "name": "Document Share Key", @@ -67,7 +67,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/domain/domain.json b/frappe/core/doctype/domain/domain.json index a6c7397e13..143c0f21de 100644 --- a/frappe/core/doctype/domain/domain.json +++ b/frappe/core/doctype/domain/domain.json @@ -1,4 +1,5 @@ { + "actions": [], "autoname": "field:domain", "creation": "2017-05-03 15:07:39.752820", "doctype": "DocType", @@ -17,7 +18,8 @@ "unique": 1 } ], - "modified": "2020-09-18 17:26:09.703215", + "links": [], + "modified": "2024-03-23 16:03:22.994251", "modified_by": "Administrator", "module": "Core", "name": "Domain", @@ -48,7 +50,8 @@ ], "quick_entry": 1, "search_fields": "domain", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "title_field": "domain" } \ No newline at end of file diff --git a/frappe/core/doctype/domain_settings/domain_settings.json b/frappe/core/doctype/domain_settings/domain_settings.json index c363529cbd..22cf20acfe 100644 --- a/frappe/core/doctype/domain_settings/domain_settings.json +++ b/frappe/core/doctype/domain_settings/domain_settings.json @@ -31,7 +31,7 @@ ], "issingle": 1, "links": [], - "modified": "2022-08-03 12:20:53.256607", + "modified": "2024-03-23 16:03:23.087355", "modified_by": "Administrator", "module": "Core", "name": "Domain Settings", @@ -49,7 +49,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/dynamic_link/dynamic_link.json b/frappe/core/doctype/dynamic_link/dynamic_link.json index b99f77f139..5cbea626d1 100644 --- a/frappe/core/doctype/dynamic_link/dynamic_link.json +++ b/frappe/core/doctype/dynamic_link/dynamic_link.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2017-01-13 04:55:18.835023", "doctype": "DocType", "editable_grid": 1, @@ -34,14 +35,16 @@ } ], "istable": 1, - "modified": "2019-10-10 22:05:54.736093", + "links": [], + "modified": "2024-03-23 16:03:23.469424", "modified_by": "Administrator", "module": "Core", "name": "Dynamic Link", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/error_log/error_log.json b/frappe/core/doctype/error_log/error_log.json index 813fb5f3c2..a2d917ff43 100644 --- a/frappe/core/doctype/error_log/error_log.json +++ b/frappe/core/doctype/error_log/error_log.json @@ -70,7 +70,7 @@ "idx": 1, "in_create": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:25.381120", "modified_by": "Administrator", "module": "Core", "name": "Error Log", @@ -88,7 +88,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "method" diff --git a/frappe/core/doctype/error_log/error_log.py b/frappe/core/doctype/error_log/error_log.py index e9d8b63495..a0ea96a10c 100644 --- a/frappe/core/doctype/error_log/error_log.py +++ b/frappe/core/doctype/error_log/error_log.py @@ -32,7 +32,7 @@ class ErrorLog(Document): @staticmethod def clear_old_logs(days=30): table = frappe.qb.DocType("Error Log") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) @frappe.whitelist() diff --git a/frappe/core/doctype/error_log/error_log_list.js b/frappe/core/doctype/error_log/error_log_list.js index dabe95d6d7..b48b2cd77f 100644 --- a/frappe/core/doctype/error_log/error_log_list.js +++ b/frappe/core/doctype/error_log/error_log_list.js @@ -7,7 +7,7 @@ frappe.listview_settings["Error Log"] = { return [__("Not Seen"), "red", "seen,=,0"]; } }, - order_by: "seen asc, modified desc", + order_by: "creation desc", onload: function (listview) { listview.page.add_menu_item(__("Clear Error Logs"), function () { frappe.call({ diff --git a/frappe/core/doctype/file/file.json b/frappe/core/doctype/file/file.json index 215178d8ec..5c762c0120 100644 --- a/frappe/core/doctype/file/file.json +++ b/frappe/core/doctype/file/file.json @@ -189,7 +189,7 @@ "icon": "fa fa-file", "idx": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:25.814224", "modified_by": "Administrator", "module": "Core", "name": "File", @@ -216,7 +216,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "file_name", diff --git a/frappe/core/doctype/has_domain/has_domain.json b/frappe/core/doctype/has_domain/has_domain.json index c34626b269..59e30a9ef0 100644 --- a/frappe/core/doctype/has_domain/has_domain.json +++ b/frappe/core/doctype/has_domain/has_domain.json @@ -18,14 +18,14 @@ ], "istable": 1, "links": [], - "modified": "2022-08-03 12:20:53.381248", + "modified": "2024-03-23 16:03:27.198356", "modified_by": "Administrator", "module": "Core", "name": "Has Domain", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/has_role/has_role.json b/frappe/core/doctype/has_role/has_role.json index 689e80480e..3192159cbd 100644 --- a/frappe/core/doctype/has_role/has_role.json +++ b/frappe/core/doctype/has_role/has_role.json @@ -22,13 +22,13 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2022-08-03 12:20:54.382064", + "modified": "2024-03-23 16:03:27.291168", "modified_by": "Administrator", "module": "Core", "name": "Has Role", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/installed_application/installed_application.json b/frappe/core/doctype/installed_application/installed_application.json index 1f32c557ce..3b185e9576 100644 --- a/frappe/core/doctype/installed_application/installed_application.json +++ b/frappe/core/doctype/installed_application/installed_application.json @@ -36,14 +36,15 @@ ], "istable": 1, "links": [], - "modified": "2020-05-12 10:09:49.148087", + "modified": "2024-03-23 16:03:27.892752", "modified_by": "Administrator", "module": "Core", "name": "Installed Application", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/installed_applications/installed_applications.json b/frappe/core/doctype/installed_applications/installed_applications.json index f2345e66b2..23eba1bf75 100644 --- a/frappe/core/doctype/installed_applications/installed_applications.json +++ b/frappe/core/doctype/installed_applications/installed_applications.json @@ -18,7 +18,7 @@ ], "issingle": 1, "links": [], - "modified": "2020-05-12 10:09:14.310622", + "modified": "2024-03-23 16:03:27.992755", "modified_by": "Administrator", "module": "Core", "name": "Installed Applications", @@ -36,7 +36,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/language/language.json b/frappe/core/doctype/language/language.json index c9110bb998..b3c080a65f 100644 --- a/frappe/core/doctype/language/language.json +++ b/frappe/core/doctype/language/language.json @@ -51,7 +51,7 @@ "icon": "fa fa-globe", "in_create": 1, "links": [], - "modified": "2023-04-13 13:48:38.127995", + "modified": "2024-03-23 16:03:28.477169", "modified_by": "Administrator", "module": "Core", "name": "Language", @@ -66,13 +66,13 @@ "write": 1 }, { - "role": "All", - "read": 1 + "read": 1, + "role": "All" } ], "search_fields": "language_name", "show_title_field_in_link": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "language_name", diff --git a/frappe/core/doctype/log_setting_user/log_setting_user.json b/frappe/core/doctype/log_setting_user/log_setting_user.json index 7f4b0ef874..5668315dfb 100644 --- a/frappe/core/doctype/log_setting_user/log_setting_user.json +++ b/frappe/core/doctype/log_setting_user/log_setting_user.json @@ -22,13 +22,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2020-10-08 17:22:04.690348", + "modified": "2024-03-23 16:03:29.303855", "modified_by": "Administrator", "module": "Core", "name": "Log Setting User", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/log_settings/log_settings.json b/frappe/core/doctype/log_settings/log_settings.json index 5a9dd159cc..b3816673a4 100644 --- a/frappe/core/doctype/log_settings/log_settings.json +++ b/frappe/core/doctype/log_settings/log_settings.json @@ -1,6 +1,6 @@ { "actions": [], - "creation": "2020-10-08 12:12:21.694424", + "creation": "2023-02-22 16:18:29.749940", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", @@ -18,7 +18,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2022-06-11 02:17:30.803721", + "modified": "2024-03-23 16:03:29.392292", "modified_by": "Administrator", "module": "Core", "name": "Log Settings", @@ -36,7 +36,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/log_settings/log_settings.py b/frappe/core/doctype/log_settings/log_settings.py index 1b363cec3c..cc6c1a9d29 100644 --- a/frappe/core/doctype/log_settings/log_settings.py +++ b/frappe/core/doctype/log_settings/log_settings.py @@ -181,7 +181,7 @@ def clear_log_table(doctype, days=90): frappe.db.sql( f"""INSERT INTO `{temporary}` SELECT * FROM `{original}` - WHERE `{original}`.`modified` > NOW() - INTERVAL '{days}' DAY""" + WHERE `{original}`.`creation` > NOW() - INTERVAL '{days}' DAY""" ) frappe.db.sql_ddl(f"RENAME TABLE `{original}` TO `{backup}`, `{temporary}` TO `{original}`") except Exception: diff --git a/frappe/core/doctype/logs_to_clear/logs_to_clear.json b/frappe/core/doctype/logs_to_clear/logs_to_clear.json index df19ccd9e7..3858b0be51 100644 --- a/frappe/core/doctype/logs_to_clear/logs_to_clear.json +++ b/frappe/core/doctype/logs_to_clear/logs_to_clear.json @@ -31,13 +31,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2022-06-13 02:51:36.857786", + "modified": "2024-03-23 16:03:29.489001", "modified_by": "Administrator", "module": "Core", "name": "Logs To Clear", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] -} +} \ No newline at end of file diff --git a/frappe/core/doctype/module_def/module_def.json b/frappe/core/doctype/module_def/module_def.json index e9a03bce39..20bb138f53 100644 --- a/frappe/core/doctype/module_def/module_def.json +++ b/frappe/core/doctype/module_def/module_def.json @@ -123,7 +123,7 @@ "link_fieldname": "module" } ], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:29.918362", "modified_by": "Administrator", "module": "Core", "name": "Module Def", @@ -159,7 +159,7 @@ } ], "show_name_in_global_search": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/module_profile/module_profile.json b/frappe/core/doctype/module_profile/module_profile.json index 32bc757427..37a067d6ae 100644 --- a/frappe/core/doctype/module_profile/module_profile.json +++ b/frappe/core/doctype/module_profile/module_profile.json @@ -40,7 +40,7 @@ "link_fieldname": "module_profile" } ], - "modified": "2021-12-03 15:47:21.296443", + "modified": "2024-03-23 16:03:30.237678", "modified_by": "Administrator", "module": "Core", "name": "Module Profile", @@ -60,7 +60,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/navbar_item/navbar_item.json b/frappe/core/doctype/navbar_item/navbar_item.json index 541d785710..801d0f1eca 100644 --- a/frappe/core/doctype/navbar_item/navbar_item.json +++ b/frappe/core/doctype/navbar_item/navbar_item.json @@ -18,9 +18,7 @@ "fieldtype": "Data", "in_list_view": 1, "label": "Item Label", - "mandatory_depends_on": "eval:doc.item_type == 'Route' || doc.item_type == 'Action'", - "show_days": 1, - "show_seconds": 1 + "mandatory_depends_on": "eval:doc.item_type == 'Route' || doc.item_type == 'Action'" }, { "columns": 2, @@ -29,27 +27,21 @@ "in_list_view": 1, "label": "Item Type", "options": "Route\nAction\nSeparator", - "read_only_depends_on": "eval:doc.is_standard", - "show_days": 1, - "show_seconds": 1 + "read_only_depends_on": "eval:doc.is_standard" }, { "default": "0", "fieldname": "hidden", "fieldtype": "Check", "in_list_view": 1, - "label": "Hidden", - "show_days": 1, - "show_seconds": 1 + "label": "Hidden" }, { "default": "0", "fieldname": "is_standard", "fieldtype": "Check", "label": "Is Standard", - "read_only": 1, - "show_days": 1, - "show_seconds": 1 + "read_only": 1 }, { "columns": 4, @@ -59,9 +51,7 @@ "in_list_view": 1, "label": "Route", "mandatory_depends_on": "eval:doc.item_type == 'Route'", - "read_only_depends_on": "eval:doc.is_standard", - "show_days": 1, - "show_seconds": 1 + "read_only_depends_on": "eval:doc.is_standard" }, { "depends_on": "eval:doc.item_type == 'Action'", @@ -69,21 +59,20 @@ "fieldtype": "Data", "label": "Action", "mandatory_depends_on": "eval:doc.item_type == 'Action'", - "read_only_depends_on": "eval:doc.is_standard", - "show_days": 1, - "show_seconds": 1 + "read_only_depends_on": "eval:doc.is_standard" } ], "istable": 1, "links": [], - "modified": "2020-11-02 10:57:37.709262", + "modified": "2024-03-23 16:03:30.447346", "modified_by": "Administrator", "module": "Core", "name": "Navbar Item", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/navbar_settings/navbar_settings.json b/frappe/core/doctype/navbar_settings/navbar_settings.json index 8fc0c83c82..164d80fefa 100644 --- a/frappe/core/doctype/navbar_settings/navbar_settings.json +++ b/frappe/core/doctype/navbar_settings/navbar_settings.json @@ -17,57 +17,43 @@ { "fieldname": "app_logo", "fieldtype": "Attach Image", - "label": "Application Logo", - "show_days": 1, - "show_seconds": 1 + "label": "Application Logo" }, { "fieldname": "settings_dropdown", "fieldtype": "Table", "label": "Settings Dropdown", - "options": "Navbar Item", - "show_days": 1, - "show_seconds": 1 + "options": "Navbar Item" }, { "fieldname": "help_dropdown", "fieldtype": "Table", "label": "Help Dropdown", - "options": "Navbar Item", - "show_days": 1, - "show_seconds": 1 + "options": "Navbar Item" }, { "fieldname": "section_break_2", "fieldtype": "Section Break", - "label": "Dropdowns", - "show_days": 1, - "show_seconds": 1 + "label": "Dropdowns" }, { "fieldname": "logo_section", "fieldtype": "Section Break", - "label": "Application Logo", - "show_days": 1, - "show_seconds": 1 + "label": "Application Logo" }, { "fieldname": "column_break_3", - "fieldtype": "Column Break", - "show_days": 1, - "show_seconds": 1 + "fieldtype": "Column Break" }, { "fieldname": "logo_width", "fieldtype": "Int", - "label": "Logo Width", - "show_days": 1, - "show_seconds": 1 + "label": "Logo Width" } ], "issingle": 1, "links": [], - "modified": "2020-08-06 18:11:29.955835", + "modified": "2024-03-23 16:03:30.561647", "modified_by": "Administrator", "module": "Core", "name": "Navbar Settings", @@ -85,7 +71,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/package/package.json b/frappe/core/doctype/package/package.json index 285e17a5bb..4f5ef67a43 100644 --- a/frappe/core/doctype/package/package.json +++ b/frappe/core/doctype/package/package.json @@ -50,7 +50,7 @@ "link_fieldname": "package" } ], - "modified": "2021-09-05 13:15:01.130982", + "modified": "2024-03-23 16:03:33.307130", "modified_by": "Administrator", "module": "Core", "name": "Package", @@ -70,7 +70,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/package_import/package_import.json b/frappe/core/doctype/package_import/package_import.json index f3c6168f8d..c6e095beb1 100644 --- a/frappe/core/doctype/package_import/package_import.json +++ b/frappe/core/doctype/package_import/package_import.json @@ -39,7 +39,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2021-09-05 21:30:04.796090", + "modified": "2024-03-23 16:03:33.422131", "modified_by": "Administrator", "module": "Core", "name": "Package Import", @@ -59,7 +59,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/package_release/package_release.json b/frappe/core/doctype/package_release/package_release.json index b651d699c4..3d23fc56e6 100644 --- a/frappe/core/doctype/package_release/package_release.json +++ b/frappe/core/doctype/package_release/package_release.json @@ -69,7 +69,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2021-09-05 16:04:32.860988", + "modified": "2024-03-23 16:03:33.536719", "modified_by": "Administrator", "module": "Core", "name": "Package Release", @@ -89,7 +89,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/page/page.json b/frappe/core/doctype/page/page.json index 83117d802d..06616b3593 100644 --- a/frappe/core/doctype/page/page.json +++ b/frappe/core/doctype/page/page.json @@ -102,7 +102,7 @@ "icon": "fa fa-file", "idx": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:33.657255", "modified_by": "Administrator", "module": "Core", "name": "Page", @@ -128,7 +128,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/patch_log/patch_log.json b/frappe/core/doctype/patch_log/patch_log.json index 6be3ce089e..1cf975a884 100644 --- a/frappe/core/doctype/patch_log/patch_log.json +++ b/frappe/core/doctype/patch_log/patch_log.json @@ -37,7 +37,7 @@ "icon": "fa fa-cog", "idx": 1, "links": [], - "modified": "2023-06-07 00:00:01.369265", + "modified": "2024-03-23 16:03:34.014409", "modified_by": "Administrator", "module": "Core", "name": "Patch Log", @@ -61,7 +61,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "patch", diff --git a/frappe/core/doctype/permission_inspector/permission_inspector.json b/frappe/core/doctype/permission_inspector/permission_inspector.json index 466f7e6ea1..690f3b61a2 100644 --- a/frappe/core/doctype/permission_inspector/permission_inspector.json +++ b/frappe/core/doctype/permission_inspector/permission_inspector.json @@ -72,7 +72,7 @@ "is_virtual": 1, "issingle": 1, "links": [], - "modified": "2024-01-10 14:17:49.722593", + "modified": "2024-03-23 16:03:34.140177", "modified_by": "Administrator", "module": "Core", "name": "Permission Inspector", @@ -84,7 +84,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/prepared_report/prepared_report.json b/frappe/core/doctype/prepared_report/prepared_report.json index ec86237d7f..172f6ab8a6 100644 --- a/frappe/core/doctype/prepared_report/prepared_report.json +++ b/frappe/core/doctype/prepared_report/prepared_report.json @@ -105,7 +105,7 @@ ], "in_create": 1, "links": [], - "modified": "2024-03-07 12:01:58.209879", + "modified": "2024-03-23 16:03:34.835357", "modified_by": "Administrator", "module": "Core", "name": "Prepared Report", @@ -134,7 +134,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [ { diff --git a/frappe/core/doctype/prepared_report/prepared_report.py b/frappe/core/doctype/prepared_report/prepared_report.py index 6bbda94761..45a631179f 100644 --- a/frappe/core/doctype/prepared_report/prepared_report.py +++ b/frappe/core/doctype/prepared_report/prepared_report.py @@ -51,7 +51,7 @@ class PreparedReport(Document): def clear_old_logs(days=30): prepared_reports_to_delete = frappe.get_all( "Prepared Report", - filters={"modified": ["<", frappe.utils.add_days(frappe.utils.now(), -days)]}, + filters={"creation": ["<", frappe.utils.add_days(frappe.utils.now(), -days)]}, ) for batch in frappe.utils.create_batch(prepared_reports_to_delete, 100): @@ -196,7 +196,7 @@ def expire_stalled_report(): "Prepared Report", { "status": "Started", - "modified": ("<", add_to_date(now(), seconds=-FAILURE_THRESHOLD, as_datetime=True)), + "creation": ("<", add_to_date(now(), seconds=-FAILURE_THRESHOLD, as_datetime=True)), }, { "status": "Failed", diff --git a/frappe/core/doctype/recorder_query/recorder_query.json b/frappe/core/doctype/recorder_query/recorder_query.json index 4a529adb5b..75be1cfe09 100644 --- a/frappe/core/doctype/recorder_query/recorder_query.json +++ b/frappe/core/doctype/recorder_query/recorder_query.json @@ -94,13 +94,13 @@ "is_virtual": 1, "istable": 1, "links": [], - "modified": "2023-08-07 13:12:23.496002", + "modified": "2024-03-23 16:03:36.052756", "modified_by": "Administrator", "module": "Core", "name": "Recorder Query", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/report/report.json b/frappe/core/doctype/report/report.json index 353e44c88b..d234f0ad55 100644 --- a/frappe/core/doctype/report/report.json +++ b/frappe/core/doctype/report/report.json @@ -191,7 +191,7 @@ "idx": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2024-01-03 15:29:01.460404", + "modified": "2024-03-23 16:03:36.343177", "modified_by": "Administrator", "module": "Core", "name": "Report", @@ -240,7 +240,7 @@ } ], "show_name_in_global_search": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/report/report.py b/frappe/core/doctype/report/report.py index c108c8ee6e..0928057e17 100644 --- a/frappe/core/doctype/report/report.py +++ b/frappe/core/doctype/report/report.py @@ -315,7 +315,7 @@ class Report(Document): elif params.get("order_by"): order_by = params.get("order_by") else: - order_by = Report._format([self.ref_doctype, "modified"]) + " desc" + order_by = Report._format([self.ref_doctype, "creation"]) + " desc" if params.get("sort_by_next"): order_by += ( diff --git a/frappe/core/doctype/report/user_activity_report.json b/frappe/core/doctype/report/user_activity_report.json index 5339bbe37d..ee5ec7f7ae 100644 --- a/frappe/core/doctype/report/user_activity_report.json +++ b/frappe/core/doctype/report/user_activity_report.json @@ -6,7 +6,7 @@ "doctype": "Report", "is_standard": "No", "javascript": null, - "json": "{\"filters\":[],\"columns\":[[\"name\",\"User\"],[\"user_type\",\"User\"],[\"first_name\",\"User\"],[\"last_name\",\"User\"],[\"last_active\",\"User\"],[\"role\",\"Has Role\"]],\"sort_by\":\"User.modified\",\"sort_order\":\"desc\",\"sort_by_next\":null,\"sort_order_next\":\"desc\"}", + "json": "{\"filters\":[],\"columns\":[[\"name\",\"User\"],[\"user_type\",\"User\"],[\"first_name\",\"User\"],[\"last_name\",\"User\"],[\"last_active\",\"User\"],[\"role\",\"Has Role\"]],\"sort_by\":\"User.creation\",\"sort_order\":\"desc\",\"sort_by_next\":null,\"sort_order_next\":\"desc\"}", "modified": "2016-09-01 02:59:07.728890", "module": "Core", "name": "User Activity Report", @@ -14,4 +14,4 @@ "ref_doctype": "User", "report_name": "User Activity Report", "report_type": "Report Builder" -} \ No newline at end of file +} diff --git a/frappe/core/doctype/report_column/report_column.json b/frappe/core/doctype/report_column/report_column.json index 2e6a22d29a..bcef081c76 100644 --- a/frappe/core/doctype/report_column/report_column.json +++ b/frappe/core/doctype/report_column/report_column.json @@ -48,14 +48,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2020-09-03 10:52:03.895817", + "modified": "2024-03-23 16:03:36.524357", "modified_by": "Administrator", "module": "Core", "name": "Report Column", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/report_filter/report_filter.json b/frappe/core/doctype/report_filter/report_filter.json index f0800a055a..3d7ff5a2ea 100644 --- a/frappe/core/doctype/report_filter/report_filter.json +++ b/frappe/core/doctype/report_filter/report_filter.json @@ -76,14 +76,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2023-06-15 11:37:35.961036", + "modified": "2024-03-23 16:03:36.633258", "modified_by": "Administrator", "module": "Core", "name": "Report Filter", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/role/role.json b/frappe/core/doctype/role/role.json index c963badf6b..c5fde3e5e0 100644 --- a/frappe/core/doctype/role/role.json +++ b/frappe/core/doctype/role/role.json @@ -148,7 +148,7 @@ "idx": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2024-03-13 20:59:37.875253", + "modified": "2024-03-23 16:03:36.854123", "modified_by": "Administrator", "module": "Core", "name": "Role", @@ -168,7 +168,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1, diff --git a/frappe/core/doctype/role_permission_for_page_and_report/role_permission_for_page_and_report.json b/frappe/core/doctype/role_permission_for_page_and_report/role_permission_for_page_and_report.json index 52ecc5d38f..e7a450bc99 100644 --- a/frappe/core/doctype/role_permission_for_page_and_report/role_permission_for_page_and_report.json +++ b/frappe/core/doctype/role_permission_for_page_and_report/role_permission_for_page_and_report.json @@ -71,7 +71,7 @@ "hide_toolbar": 1, "issingle": 1, "links": [], - "modified": "2022-11-23 12:39:05.750386", + "modified": "2024-03-23 16:03:36.991083", "modified_by": "Administrator", "module": "Core", "name": "Role Permission for Page and Report", @@ -89,7 +89,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/role_profile/role_profile.json b/frappe/core/doctype/role_profile/role_profile.json index c182c5559d..e0fb326114 100644 --- a/frappe/core/doctype/role_profile/role_profile.json +++ b/frappe/core/doctype/role_profile/role_profile.json @@ -43,7 +43,7 @@ "table_fieldname": "role_profiles" } ], - "modified": "2024-02-10 12:22:24.803943", + "modified": "2024-03-23 16:03:37.104710", "modified_by": "Administrator", "module": "Core", "name": "Role Profile", @@ -74,7 +74,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "role_profile", diff --git a/frappe/core/doctype/rq_job/rq_job.json b/frappe/core/doctype/rq_job/rq_job.json index 6a3946754c..32a062572c 100644 --- a/frappe/core/doctype/rq_job/rq_job.json +++ b/frappe/core/doctype/rq_job/rq_job.json @@ -108,7 +108,7 @@ "in_create": 1, "is_virtual": 1, "links": [], - "modified": "2024-01-13 10:38:40.230972", + "modified": "2024-03-23 16:03:37.325708", "modified_by": "Administrator", "module": "Core", "name": "RQ Job", @@ -135,7 +135,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [ { diff --git a/frappe/core/doctype/rq_job/rq_job.py b/frappe/core/doctype/rq_job/rq_job.py index 93ca331443..ac7641b31d 100644 --- a/frappe/core/doctype/rq_job/rq_job.py +++ b/frappe/core/doctype/rq_job/rq_job.py @@ -76,14 +76,14 @@ class RQJob(Document): return self._job_obj @staticmethod - def get_list(filters=None, start=0, page_length=20, order_by="modified desc"): + def get_list(filters=None, start=0, page_length=20, order_by="creation desc"): matched_job_ids = RQJob.get_matching_job_ids(filters=filters)[start : start + page_length] conn = get_redis_conn() jobs = [serialize_job(job) for job in Job.fetch_many(job_ids=matched_job_ids, connection=conn) if job] order_desc = "desc" in order_by - return sorted(jobs, key=lambda j: j.modified, reverse=order_desc) + return sorted(jobs, key=lambda j: j.creation, reverse=order_desc) @staticmethod def get_matching_job_ids(filters) -> list[str]: diff --git a/frappe/core/doctype/rq_worker/rq_worker.json b/frappe/core/doctype/rq_worker/rq_worker.json index cc301be5b3..6d84ad3e28 100644 --- a/frappe/core/doctype/rq_worker/rq_worker.json +++ b/frappe/core/doctype/rq_worker/rq_worker.json @@ -114,7 +114,7 @@ "in_create": 1, "is_virtual": 1, "links": [], - "modified": "2024-02-29 19:31:08.502527", + "modified": "2024-03-23 16:03:37.451604", "modified_by": "Administrator", "module": "Core", "name": "RQ Worker", @@ -130,7 +130,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [ { diff --git a/frappe/core/doctype/scheduled_job_log/scheduled_job_log.json b/frappe/core/doctype/scheduled_job_log/scheduled_job_log.json index 782c0749f8..e9987eb1cc 100644 --- a/frappe/core/doctype/scheduled_job_log/scheduled_job_log.json +++ b/frappe/core/doctype/scheduled_job_log/scheduled_job_log.json @@ -45,7 +45,7 @@ } ], "links": [], - "modified": "2023-11-09 12:06:41.781270", + "modified": "2024-03-23 16:03:37.828186", "modified_by": "Administrator", "module": "Core", "name": "Scheduled Job Log", @@ -65,7 +65,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "scheduled_job_type" diff --git a/frappe/core/doctype/scheduled_job_log/scheduled_job_log.py b/frappe/core/doctype/scheduled_job_log/scheduled_job_log.py index 72e1e6b6c4..f5995872e5 100644 --- a/frappe/core/doctype/scheduled_job_log/scheduled_job_log.py +++ b/frappe/core/doctype/scheduled_job_log/scheduled_job_log.py @@ -25,4 +25,4 @@ class ScheduledJobLog(Document): @staticmethod def clear_old_logs(days=90): table = frappe.qb.DocType("Scheduled Job Log") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) diff --git a/frappe/core/doctype/scheduled_job_type/scheduled_job_type.json b/frappe/core/doctype/scheduled_job_type/scheduled_job_type.json index b3f04ad4c1..da751a404c 100644 --- a/frappe/core/doctype/scheduled_job_type/scheduled_job_type.json +++ b/frappe/core/doctype/scheduled_job_type/scheduled_job_type.json @@ -6,7 +6,7 @@ "label": "Execute" } ], - "creation": "2019-09-23 14:34:09.205368", + "creation": "2024-02-23 10:41:33.059393", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", @@ -102,7 +102,7 @@ "link_fieldname": "scheduled_job_type" } ], - "modified": "2024-02-22 17:16:36.212691", + "modified": "2024-03-23 16:03:37.925078", "modified_by": "Administrator", "module": "Core", "name": "Scheduled Job Type", @@ -123,7 +123,7 @@ ], "quick_entry": 1, "show_title_field_in_link": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "method", diff --git a/frappe/core/doctype/server_script/server_script.json b/frappe/core/doctype/server_script/server_script.json index f081b846f3..197e768fed 100644 --- a/frappe/core/doctype/server_script/server_script.json +++ b/frappe/core/doctype/server_script/server_script.json @@ -151,7 +151,7 @@ "link_fieldname": "server_script" } ], - "modified": "2024-02-27 11:44:46.397495", + "modified": "2024-03-23 16:03:38.075313", "modified_by": "Administrator", "module": "Core", "name": "Server Script", @@ -171,7 +171,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/session_default/session_default.json b/frappe/core/doctype/session_default/session_default.json index d382e12456..4710bfbdf0 100644 --- a/frappe/core/doctype/session_default/session_default.json +++ b/frappe/core/doctype/session_default/session_default.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-07-17 16:21:33.546379", "doctype": "DocType", "editable_grid": 1, @@ -16,14 +17,16 @@ } ], "istable": 1, - "modified": "2019-07-21 13:22:25.752553", + "links": [], + "modified": "2024-03-23 16:03:38.225606", "modified_by": "Administrator", "module": "Core", "name": "Session Default", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/session_default_settings/session_default_settings.json b/frappe/core/doctype/session_default_settings/session_default_settings.json index 3eeb3f4167..2333dcfb15 100644 --- a/frappe/core/doctype/session_default_settings/session_default_settings.json +++ b/frappe/core/doctype/session_default_settings/session_default_settings.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-07-17 16:22:31.300991", "doctype": "DocType", "editable_grid": 1, @@ -15,7 +16,8 @@ } ], "issingle": 1, - "modified": "2019-07-19 16:04:33.971089", + "links": [], + "modified": "2024-03-23 16:03:38.318576", "modified_by": "Administrator", "module": "Core", "name": "Session Default Settings", @@ -33,7 +35,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/sms_log/sms_log.json b/frappe/core/doctype/sms_log/sms_log.json index 1bdcec13ee..922330f381 100644 --- a/frappe/core/doctype/sms_log/sms_log.json +++ b/frappe/core/doctype/sms_log/sms_log.json @@ -1,371 +1,99 @@ { - "allow_copy": 0, - "allow_guest_to_view": 0, - "allow_import": 0, - "allow_rename": 0, - "autoname": "SYS-SMS-.#####", - "beta": 0, - "creation": "2012-03-27 14:36:47", - "custom": 0, - "docstatus": 0, - "doctype": "DocType", - "editable_grid": 0, + "actions": [], + "autoname": "SYS-SMS-.#####", + "creation": "2012-03-27 14:36:47", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "sender_name", + "sent_on", + "column_break0", + "message", + "sec_break1", + "no_of_requested_sms", + "requested_numbers", + "column_break1", + "no_of_sent_sms", + "sent_to" + ], "fields": [ { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "sender_name", - "fieldtype": "Data", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Sender Name", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 1, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, + "fieldname": "sender_name", + "fieldtype": "Data", + "label": "Sender Name", + "read_only": 1 + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "sent_on", - "fieldtype": "Date", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Sent On", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 1, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, + "fieldname": "sent_on", + "fieldtype": "Date", + "label": "Sent On", + "read_only": 1 + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "column_break0", - "fieldtype": "Column Break", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "length": 0, - "no_copy": 0, - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0, + "fieldname": "column_break0", + "fieldtype": "Column Break", "width": "50%" - }, + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "message", - "fieldtype": "Small Text", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Message", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 1, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, + "fieldname": "message", + "fieldtype": "Small Text", + "label": "Message", + "read_only": 1 + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "sec_break1", - "fieldtype": "Section Break", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "length": 0, - "no_copy": 0, - "options": "Simple", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, + "fieldname": "sec_break1", + "fieldtype": "Section Break", + "options": "Simple" + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "no_of_requested_sms", - "fieldtype": "Int", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "No of Requested SMS", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 1, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, + "fieldname": "no_of_requested_sms", + "fieldtype": "Int", + "label": "No of Requested SMS", + "read_only": 1 + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "requested_numbers", - "fieldtype": "Code", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Requested Numbers", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 1, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, + "fieldname": "requested_numbers", + "fieldtype": "Code", + "label": "Requested Numbers", + "read_only": 1 + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "column_break1", - "fieldtype": "Column Break", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "length": 0, - "no_copy": 0, - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0, + "fieldname": "column_break1", + "fieldtype": "Column Break", "width": "50%" - }, + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "no_of_sent_sms", - "fieldtype": "Int", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "No of Sent SMS", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 1, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, + "fieldname": "no_of_sent_sms", + "fieldtype": "Int", + "label": "No of Sent SMS", + "read_only": 1 + }, { - "allow_bulk_edit": 0, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "sent_to", - "fieldtype": "Code", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Sent To", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 1, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 + "fieldname": "sent_to", + "fieldtype": "Code", + "label": "Sent To", + "read_only": 1 } - ], - "has_web_view": 0, - "hide_heading": 0, - "hide_toolbar": 0, - "icon": "fa fa-mobile-phone", - "idx": 1, - "image_view": 0, - "in_create": 0, - "is_submittable": 0, - "issingle": 0, - "istable": 0, - "max_attachments": 0, - "modified": "2018-08-21 16:15:40.898889", - "modified_by": "Administrator", - "module": "Core", - "name": "SMS Log", - "owner": "Administrator", + ], + "icon": "fa fa-mobile-phone", + "idx": 1, + "links": [], + "modified": "2024-03-23 16:03:38.537041", + "modified_by": "Administrator", + "module": "Core", + "name": "SMS Log", + "owner": "Administrator", "permissions": [ { - "amend": 0, - "cancel": 0, - "create": 0, - "delete": 0, - "email": 1, - "export": 0, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "set_user_permissions": 0, - "share": 0, - "submit": 0, - "write": 0 + "email": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager" } - ], - "quick_entry": 0, - "read_only": 0, - "read_only_onload": 0, - "show_name_in_global_search": 0, - "track_changes": 1, - "track_seen": 0, - "track_views": 0 + ], + "sort_field": "creation", + "sort_order": "DESC", + "states": [], + "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/sms_parameter/sms_parameter.json b/frappe/core/doctype/sms_parameter/sms_parameter.json index 98972f9e7d..96b4ef02c5 100755 --- a/frappe/core/doctype/sms_parameter/sms_parameter.json +++ b/frappe/core/doctype/sms_parameter/sms_parameter.json @@ -39,13 +39,13 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2022-08-03 12:20:53.129765", + "modified": "2024-03-23 16:03:38.659977", "modified_by": "Administrator", "module": "Core", "name": "SMS Parameter", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/sms_settings/sms_settings.json b/frappe/core/doctype/sms_settings/sms_settings.json index d29949af45..f8f5b746ba 100755 --- a/frappe/core/doctype/sms_settings/sms_settings.json +++ b/frappe/core/doctype/sms_settings/sms_settings.json @@ -60,7 +60,7 @@ "idx": 1, "issingle": 1, "links": [], - "modified": "2021-09-21 19:45:26.809793", + "modified": "2024-03-23 16:03:38.762589", "modified_by": "Administrator", "module": "Core", "name": "SMS Settings", @@ -74,7 +74,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/submission_queue/submission_queue.json b/frappe/core/doctype/submission_queue/submission_queue.json index 4e4abceacf..c5d311e435 100644 --- a/frappe/core/doctype/submission_queue/submission_queue.json +++ b/frappe/core/doctype/submission_queue/submission_queue.json @@ -89,7 +89,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-29 12:27:54.754054", + "modified": "2024-03-23 16:03:39.111282", "modified_by": "Administrator", "module": "Core", "name": "Submission Queue", @@ -111,7 +111,7 @@ "role": "Desk User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [ { diff --git a/frappe/core/doctype/submission_queue/submission_queue.py b/frappe/core/doctype/submission_queue/submission_queue.py index bad6f88af4..d76ff80e52 100644 --- a/frappe/core/doctype/submission_queue/submission_queue.py +++ b/frappe/core/doctype/submission_queue/submission_queue.py @@ -51,7 +51,7 @@ class SubmissionQueue(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("Submission Queue") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) def insert(self, to_be_queued_doc: Document, action: str): self.status = "Queued" diff --git a/frappe/core/doctype/success_action/success_action.json b/frappe/core/doctype/success_action/success_action.json index 749fa6764f..4392080b36 100644 --- a/frappe/core/doctype/success_action/success_action.json +++ b/frappe/core/doctype/success_action/success_action.json @@ -58,7 +58,7 @@ ], "hide_toolbar": 1, "links": [], - "modified": "2022-08-03 12:20:54.532708", + "modified": "2024-03-23 16:03:39.228220", "modified_by": "Administrator", "module": "Core", "name": "Success Action", @@ -77,7 +77,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/system_settings/system_settings.json b/frappe/core/doctype/system_settings/system_settings.json index 51fcb692d4..d496ebff32 100644 --- a/frappe/core/doctype/system_settings/system_settings.json +++ b/frappe/core/doctype/system_settings/system_settings.json @@ -40,7 +40,6 @@ "column_break_uhqk", "login_with_email_link", "login_with_email_link_expiry", - "rate_limit_email_link_login", "brute_force_security", "allow_consecutive_login_attempts", "column_break_34", @@ -657,19 +656,12 @@ "fieldname": "store_attached_pdf_document", "fieldtype": "Check", "label": "Store Attached PDF Document" - }, - { - "depends_on": "login_with_email_link", - "description": "You can set a high value here if multiple users will be logging in from the same network.", - "fieldname": "rate_limit_email_link_login", - "fieldtype": "Int", - "label": "Rate limit for email link login" } ], "icon": "fa fa-cog", "issingle": 1, "links": [], - "modified": "2024-03-22 15:43:48.347441", + "modified": "2024-03-23 16:03:39.461597", "modified_by": "Administrator", "module": "Core", "name": "System Settings", @@ -684,7 +676,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/transaction_log/transaction_log.json b/frappe/core/doctype/transaction_log/transaction_log.json index 2135976add..ffe5b13eb4 100644 --- a/frappe/core/doctype/transaction_log/transaction_log.json +++ b/frappe/core/doctype/transaction_log/transaction_log.json @@ -101,7 +101,7 @@ ], "in_create": 1, "links": [], - "modified": "2022-08-03 12:20:54.684305", + "modified": "2024-03-23 16:03:59.373102", "modified_by": "Administrator", "module": "Core", "name": "Transaction Log", @@ -117,7 +117,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/translation/translation.json b/frappe/core/doctype/translation/translation.json index 68b83ed5d9..a4ea16f6c8 100644 --- a/frappe/core/doctype/translation/translation.json +++ b/frappe/core/doctype/translation/translation.json @@ -83,7 +83,7 @@ } ], "links": [], - "modified": "2022-07-04 06:53:54.997004", + "modified": "2024-03-23 16:03:59.551788", "modified_by": "Administrator", "module": "Core", "name": "Translation", @@ -103,7 +103,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "source_text", diff --git a/frappe/core/doctype/user/user.json b/frappe/core/doctype/user/user.json index 9bdfbf875f..5af6f15b40 100644 --- a/frappe/core/doctype/user/user.json +++ b/frappe/core/doctype/user/user.json @@ -788,7 +788,7 @@ "link_fieldname": "user" } ], - "modified": "2024-03-20 17:15:19.200383", + "modified": "2024-03-23 16:03:59.833565", "modified_by": "Administrator", "module": "Core", "name": "User", @@ -822,7 +822,7 @@ "route": "user", "search_fields": "full_name", "show_name_in_global_search": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "full_name", diff --git a/frappe/core/doctype/user_document_type/user_document_type.json b/frappe/core/doctype/user_document_type/user_document_type.json index 69983a2891..e4e40f7548 100644 --- a/frappe/core/doctype/user_document_type/user_document_type.json +++ b/frappe/core/doctype/user_document_type/user_document_type.json @@ -97,13 +97,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-03-16 00:32:24.414313", + "modified": "2024-03-23 16:04:00.313525", "modified_by": "Administrator", "module": "Core", "name": "User Document Type", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/user_email/user_email.json b/frappe/core/doctype/user_email/user_email.json index 6e3f813035..cdc76ca9f1 100644 --- a/frappe/core/doctype/user_email/user_email.json +++ b/frappe/core/doctype/user_email/user_email.json @@ -61,13 +61,13 @@ ], "istable": 1, "links": [], - "modified": "2022-06-03 14:25:46.944733", + "modified": "2024-03-23 16:04:00.460634", "modified_by": "Administrator", "module": "Core", "name": "User Email", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/user_group/user_group.json b/frappe/core/doctype/user_group/user_group.json index a67ceea2d2..fd49ac1266 100644 --- a/frappe/core/doctype/user_group/user_group.json +++ b/frappe/core/doctype/user_group/user_group.json @@ -19,7 +19,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 22:25:16.941457", + "modified": "2024-03-23 16:04:00.597980", "modified_by": "Administrator", "module": "Core", "name": "User Group", @@ -43,7 +43,7 @@ "role": "Desk User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/user_group_member/user_group_member.json b/frappe/core/doctype/user_group_member/user_group_member.json index d2ff149366..d495ece00b 100644 --- a/frappe/core/doctype/user_group_member/user_group_member.json +++ b/frappe/core/doctype/user_group_member/user_group_member.json @@ -20,13 +20,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-04-12 15:17:18.773046", + "modified": "2024-03-23 16:04:00.733681", "modified_by": "Administrator", "module": "Core", "name": "User Group Member", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/user_permission/user_permission.json b/frappe/core/doctype/user_permission/user_permission.json index 60b6779bfd..197972261d 100644 --- a/frappe/core/doctype/user_permission/user_permission.json +++ b/frappe/core/doctype/user_permission/user_permission.json @@ -90,7 +90,7 @@ } ], "links": [], - "modified": "2022-01-03 11:25:03.726150", + "modified": "2024-03-23 16:04:00.823875", "modified_by": "Administrator", "module": "Core", "name": "User Permission", @@ -109,7 +109,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "user", diff --git a/frappe/core/doctype/user_role_profile/user_role_profile.json b/frappe/core/doctype/user_role_profile/user_role_profile.json index 686556477f..f5ddf37986 100644 --- a/frappe/core/doctype/user_role_profile/user_role_profile.json +++ b/frappe/core/doctype/user_role_profile/user_role_profile.json @@ -20,13 +20,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-01-29 14:25:09.513552", + "modified": "2024-03-23 16:04:00.948988", "modified_by": "Administrator", "module": "Core", "name": "User Role Profile", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/user_select_document_type/user_select_document_type.json b/frappe/core/doctype/user_select_document_type/user_select_document_type.json index 86e19422c3..7b249a2787 100644 --- a/frappe/core/doctype/user_select_document_type/user_select_document_type.json +++ b/frappe/core/doctype/user_select_document_type/user_select_document_type.json @@ -20,14 +20,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-01-17 18:45:44.993190", + "modified": "2024-03-23 16:04:01.071552", "modified_by": "Administrator", "module": "Core", "name": "User Select Document Type", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/user_social_login/user_social_login.json b/frappe/core/doctype/user_social_login/user_social_login.json index 6b4b1822d1..cd41493a5b 100644 --- a/frappe/core/doctype/user_social_login/user_social_login.json +++ b/frappe/core/doctype/user_social_login/user_social_login.json @@ -44,14 +44,14 @@ ], "istable": 1, "links": [], - "modified": "2022-08-03 12:20:53.800689", + "modified": "2024-03-23 16:04:01.200476", "modified_by": "Administrator", "module": "Core", "name": "User Social Login", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/user_type/user_type.json b/frappe/core/doctype/user_type/user_type.json index 3d6b470af5..03833a8bdd 100644 --- a/frappe/core/doctype/user_type/user_type.json +++ b/frappe/core/doctype/user_type/user_type.json @@ -109,7 +109,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2022-06-09 14:00:36.820306", + "modified": "2024-03-23 16:04:01.336002", "modified_by": "Administrator", "module": "Core", "name": "User Type", @@ -138,7 +138,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/core/doctype/user_type_module/user_type_module.json b/frappe/core/doctype/user_type_module/user_type_module.json index 0f9cbefc25..285b9a2d94 100644 --- a/frappe/core/doctype/user_type_module/user_type_module.json +++ b/frappe/core/doctype/user_type_module/user_type_module.json @@ -20,14 +20,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-01-24 03:07:43.602927", + "modified": "2024-03-23 16:04:01.539682", "modified_by": "Administrator", "module": "Core", "name": "User Type Module", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/core/doctype/version/version.json b/frappe/core/doctype/version/version.json index 570b53623c..7b8297365f 100644 --- a/frappe/core/doctype/version/version.json +++ b/frappe/core/doctype/version/version.json @@ -18,7 +18,6 @@ "fieldname": "ref_doctype", "fieldtype": "Link", "in_list_view": 1, - "in_standard_filter": 1, "label": "DocType", "options": "DocType", "reqd": 1 @@ -54,10 +53,11 @@ "idx": 1, "in_create": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:04:01.627592", "modified_by": "Administrator", "module": "Core", "name": "Version", + "naming_rule": "Random", "owner": "Administrator", "permissions": [ { @@ -73,7 +73,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "docname", diff --git a/frappe/core/doctype/view_log/view_log.json b/frappe/core/doctype/view_log/view_log.json index a350ae835c..ade16cd09a 100644 --- a/frappe/core/doctype/view_log/view_log.json +++ b/frappe/core/doctype/view_log/view_log.json @@ -33,7 +33,7 @@ } ], "links": [], - "modified": "2022-09-07 05:16:14.587628", + "modified": "2024-03-23 16:04:01.764239", "modified_by": "Administrator", "module": "Core", "name": "View Log", @@ -50,7 +50,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/core/doctype/view_log/view_log.py b/frappe/core/doctype/view_log/view_log.py index 42d93fff35..457c1e059a 100644 --- a/frappe/core/doctype/view_log/view_log.py +++ b/frappe/core/doctype/view_log/view_log.py @@ -25,4 +25,4 @@ class ViewLog(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("View Log") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) diff --git a/frappe/core/report/document_share_report/document_share_report.json b/frappe/core/report/document_share_report/document_share_report.json index db2f2b6be8..653c9b4d32 100644 --- a/frappe/core/report/document_share_report/document_share_report.json +++ b/frappe/core/report/document_share_report/document_share_report.json @@ -1,24 +1,24 @@ { - "add_total_row": 0, - "apply_user_permissions": 1, - "creation": "2015-02-05 06:01:35.060098", - "disabled": 0, - "docstatus": 0, - "doctype": "Report", - "idx": 2, - "is_standard": "Yes", - "json": "{\"add_total_row\": 0, \"sort_by\": \"DocShare.modified\", \"sort_order\": \"desc\", \"sort_by_next\": null, \"filters\": [], \"sort_order_next\": \"desc\", \"columns\": [[\"name\", \"DocShare\"], [\"user\", \"DocShare\"], [\"share_doctype\", \"DocShare\"], [\"share_name\", \"DocShare\"], [\"read\", \"DocShare\"], [\"write\", \"DocShare\"], [\"share\", \"DocShare\"]]}", - "modified": "2017-02-24 20:01:16.232286", - "modified_by": "Administrator", - "module": "Core", - "name": "Document Share Report", - "owner": "Administrator", - "ref_doctype": "DocShare", - "report_name": "Document Share Report", - "report_type": "Report Builder", + "add_total_row": 0, + "apply_user_permissions": 1, + "creation": "2015-02-05 06:01:35.060098", + "disabled": 0, + "docstatus": 0, + "doctype": "Report", + "idx": 2, + "is_standard": "Yes", + "json": "{\"add_total_row\": 0, \"sort_by\": \"DocShare.creation\", \"sort_order\": \"desc\", \"sort_by_next\": null, \"filters\": [], \"sort_order_next\": \"desc\", \"columns\": [[\"name\", \"DocShare\"], [\"user\", \"DocShare\"], [\"share_doctype\", \"DocShare\"], [\"share_name\", \"DocShare\"], [\"read\", \"DocShare\"], [\"write\", \"DocShare\"], [\"share\", \"DocShare\"]]}", + "modified": "2017-02-24 20:01:16.232286", + "modified_by": "Administrator", + "module": "Core", + "name": "Document Share Report", + "owner": "Administrator", + "ref_doctype": "DocShare", + "report_name": "Document Share Report", + "report_type": "Report Builder", "roles": [ { "role": "System Manager" } ] -} \ No newline at end of file +} diff --git a/frappe/custom/doctype/client_script/client_script.json b/frappe/custom/doctype/client_script/client_script.json index dddf0c0a04..65504d644d 100644 --- a/frappe/custom/doctype/client_script/client_script.json +++ b/frappe/custom/doctype/client_script/client_script.json @@ -77,7 +77,7 @@ "idx": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:01:29.862624", "modified_by": "Administrator", "module": "Custom", "name": "Client Script", @@ -107,7 +107,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/custom/doctype/custom_field/custom_field.json b/frappe/custom/doctype/custom_field/custom_field.json index b0971a1381..09c6fad731 100644 --- a/frappe/custom/doctype/custom_field/custom_field.json +++ b/frappe/custom/doctype/custom_field/custom_field.json @@ -464,7 +464,7 @@ "idx": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2024-03-07 17:34:47.167183", + "modified": "2024-03-23 16:02:15.143117", "modified_by": "Administrator", "module": "Custom", "name": "Custom Field", @@ -494,7 +494,7 @@ } ], "search_fields": "dt,label,fieldtype,options", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/custom/doctype/customize_form/customize_form.json b/frappe/custom/doctype/customize_form/customize_form.json index 273cab894a..4bba44bf5c 100644 --- a/frappe/custom/doctype/customize_form/customize_form.json +++ b/frappe/custom/doctype/customize_form/customize_form.json @@ -407,7 +407,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2023-12-01 18:18:23.086134", + "modified": "2024-03-23 16:02:15.670853", "modified_by": "Administrator", "module": "Custom", "name": "Customize Form", @@ -426,7 +426,7 @@ ], "quick_entry": 1, "search_fields": "doc_type", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/custom/doctype/customize_form_field/customize_form_field.json b/frappe/custom/doctype/customize_form_field/customize_form_field.json index 0dfd7a6c45..3579d5252a 100644 --- a/frappe/custom/doctype/customize_form_field/customize_form_field.json +++ b/frappe/custom/doctype/customize_form_field/customize_form_field.json @@ -484,14 +484,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-02-01 15:56:39.171633", + "modified": "2024-03-23 16:02:15.866361", "modified_by": "Administrator", "module": "Custom", "name": "Customize Form Field", "naming_rule": "Random", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/custom/doctype/doctype_layout/doctype_layout.json b/frappe/custom/doctype/doctype_layout/doctype_layout.json index 5237e7615e..131924bc77 100644 --- a/frappe/custom/doctype/doctype_layout/doctype_layout.json +++ b/frappe/custom/doctype/doctype_layout/doctype_layout.json @@ -43,7 +43,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 22:24:08.103972", + "modified": "2024-03-23 16:03:22.020755", "modified_by": "Administrator", "module": "Custom", "name": "DocType Layout", @@ -68,7 +68,7 @@ } ], "route": "doctype-layout", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/custom/doctype/doctype_layout_field/doctype_layout_field.json b/frappe/custom/doctype/doctype_layout_field/doctype_layout_field.json index 006c01ae4e..5d05505304 100644 --- a/frappe/custom/doctype/doctype_layout_field/doctype_layout_field.json +++ b/frappe/custom/doctype/doctype_layout_field/doctype_layout_field.json @@ -26,13 +26,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-05-19 16:27:40.585865", + "modified": "2024-03-23 16:03:22.165461", "modified_by": "Administrator", "module": "Custom", "name": "DocType Layout Field", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/custom/doctype/property_setter/property_setter.json b/frappe/custom/doctype/property_setter/property_setter.json index 039826b3b7..54a025298b 100644 --- a/frappe/custom/doctype/property_setter/property_setter.json +++ b/frappe/custom/doctype/property_setter/property_setter.json @@ -117,7 +117,7 @@ "idx": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2022-02-28 22:24:12.377693", + "modified": "2024-03-23 16:03:35.631784", "modified_by": "Administrator", "module": "Custom", "name": "Property Setter", @@ -147,7 +147,7 @@ } ], "search_fields": "doc_type,property", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/custom/fixtures/temp_doctype.json b/frappe/custom/fixtures/temp_doctype.json index 20b3d9caa9..08d9c230c5 100644 --- a/frappe/custom/fixtures/temp_doctype.json +++ b/frappe/custom/fixtures/temp_doctype.json @@ -24,7 +24,7 @@ "allow_import": 0, "allow_events_in_timeline": 0, "allow_auto_repeat": 0, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "document_type": "", "show_preview_popup": 0, diff --git a/frappe/custom/fixtures/temp_singles.json b/frappe/custom/fixtures/temp_singles.json index 723f47d7ac..a7a695117c 100644 --- a/frappe/custom/fixtures/temp_singles.json +++ b/frappe/custom/fixtures/temp_singles.json @@ -24,7 +24,7 @@ "allow_import": 0, "allow_events_in_timeline": 0, "allow_auto_repeat": 0, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "document_type": "", "show_preview_popup": 0, diff --git a/frappe/database/database.py b/frappe/database/database.py index d56d35e5be..70444acee2 100644 --- a/frappe/database/database.py +++ b/frappe/database/database.py @@ -609,7 +609,7 @@ class Database: if (filters is not None) and (filters != doctype or doctype == "DocType"): try: if order_by: - order_by = "modified" if order_by == DefaultOrderBy else order_by + order_by = "creation" if order_by == DefaultOrderBy else order_by out = self._get_values_from_table( fields=fields, filters=filters, diff --git a/frappe/database/mariadb/framework_mariadb.sql b/frappe/database/mariadb/framework_mariadb.sql index 91ef69645c..d9f5c9edc5 100644 --- a/frappe/database/mariadb/framework_mariadb.sql +++ b/frappe/database/mariadb/framework_mariadb.sql @@ -133,8 +133,7 @@ CREATE TABLE `tabDocType Action` ( `action_type` varchar(140) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `action` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`name`), - KEY `parent` (`parent`), - KEY `modified` (`modified`) + KEY `parent` (`parent`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; -- @@ -157,8 +156,7 @@ CREATE TABLE `tabDocType Link` ( `link_doctype` varchar(140) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `link_fieldname` varchar(140) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`name`), - KEY `parent` (`parent`), - KEY `modified` (`modified`) + KEY `parent` (`parent`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; -- diff --git a/frappe/database/mariadb/schema.py b/frappe/database/mariadb/schema.py index 22b88b2639..7496e5b955 100644 --- a/frappe/database/mariadb/schema.py +++ b/frappe/database/mariadb/schema.py @@ -33,7 +33,7 @@ class MariaDBTable(DBTable): ] else: # parent types - additional_definitions.append("index modified(modified)") + additional_definitions.append("index creation(creation)") # creating sequence(s) if not self.meta.issingle and self.meta.autoname == "autoincrement": diff --git a/frappe/desk/doctype/bulk_update/bulk_update.json b/frappe/desk/doctype/bulk_update/bulk_update.json index 93458516fd..a678a99e21 100644 --- a/frappe/desk/doctype/bulk_update/bulk_update.json +++ b/frappe/desk/doctype/bulk_update/bulk_update.json @@ -52,7 +52,7 @@ ], "issingle": 1, "links": [], - "modified": "2022-08-03 12:20:50.742376", + "modified": "2024-03-23 16:01:29.575802", "modified_by": "Administrator", "module": "Desk", "name": "Bulk Update", @@ -70,7 +70,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/calendar_view/calendar_view.json b/frappe/desk/doctype/calendar_view/calendar_view.json index 8149446a3e..445c46a8e1 100644 --- a/frappe/desk/doctype/calendar_view/calendar_view.json +++ b/frappe/desk/doctype/calendar_view/calendar_view.json @@ -53,7 +53,7 @@ } ], "links": [], - "modified": "2023-08-28 22:29:39.662726", + "modified": "2024-03-23 16:01:29.668268", "modified_by": "Administrator", "module": "Desk", "name": "Calendar View", @@ -77,7 +77,7 @@ "role": "Desk User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/desk/doctype/console_log/console_log.json b/frappe/desk/doctype/console_log/console_log.json index a2955bf814..e06ddacf51 100644 --- a/frappe/desk/doctype/console_log/console_log.json +++ b/frappe/desk/doctype/console_log/console_log.json @@ -35,7 +35,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2024-03-12 20:35:43.921009", + "modified": "2024-03-23 16:01:30.816591", "modified_by": "Administrator", "module": "Desk", "name": "Console Log", @@ -55,7 +55,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/custom_html_block/custom_html_block.json b/frappe/desk/doctype/custom_html_block/custom_html_block.json index f65ba5177d..6d8aadfbc4 100644 --- a/frappe/desk/doctype/custom_html_block/custom_html_block.json +++ b/frappe/desk/doctype/custom_html_block/custom_html_block.json @@ -93,7 +93,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 20:25:00.740795", + "modified": "2024-03-23 16:02:15.380899", "modified_by": "Administrator", "module": "Desk", "name": "Custom HTML Block", @@ -147,7 +147,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/dashboard/dashboard.json b/frappe/desk/doctype/dashboard/dashboard.json index 5b6f4eba86..294abb64c3 100644 --- a/frappe/desk/doctype/dashboard/dashboard.json +++ b/frappe/desk/doctype/dashboard/dashboard.json @@ -67,7 +67,7 @@ } ], "links": [], - "modified": "2023-08-28 22:35:02.993039", + "modified": "2024-03-23 16:02:16.071715", "modified_by": "Administrator", "module": "Desk", "name": "Dashboard", @@ -108,7 +108,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "dashboard_name", diff --git a/frappe/desk/doctype/dashboard_chart/dashboard_chart.json b/frappe/desk/doctype/dashboard_chart/dashboard_chart.json index a649633049..d9593664fe 100644 --- a/frappe/desk/doctype/dashboard_chart/dashboard_chart.json +++ b/frappe/desk/doctype/dashboard_chart/dashboard_chart.json @@ -288,7 +288,7 @@ } ], "links": [], - "modified": "2023-09-18 13:41:05.263676", + "modified": "2024-03-23 16:02:16.230433", "modified_by": "Administrator", "module": "Desk", "name": "Dashboard Chart", @@ -329,7 +329,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/dashboard_chart_field/dashboard_chart_field.json b/frappe/desk/doctype/dashboard_chart_field/dashboard_chart_field.json index 6347be40ff..f70bacf476 100644 --- a/frappe/desk/doctype/dashboard_chart_field/dashboard_chart_field.json +++ b/frappe/desk/doctype/dashboard_chart_field/dashboard_chart_field.json @@ -24,14 +24,15 @@ ], "istable": 1, "links": [], - "modified": "2020-02-28 11:48:24.731946", + "modified": "2024-03-23 16:02:16.427669", "modified_by": "Administrator", "module": "Desk", "name": "Dashboard Chart Field", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/dashboard_chart_link/dashboard_chart_link.json b/frappe/desk/doctype/dashboard_chart_link/dashboard_chart_link.json index 51b5ed3036..520ebcd3c7 100644 --- a/frappe/desk/doctype/dashboard_chart_link/dashboard_chart_link.json +++ b/frappe/desk/doctype/dashboard_chart_link/dashboard_chart_link.json @@ -28,14 +28,15 @@ ], "istable": 1, "links": [], - "modified": "2020-03-13 19:23:05.561687", + "modified": "2024-03-23 16:02:16.522316", "modified_by": "Administrator", "module": "Desk", "name": "Dashboard Chart Link", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/dashboard_chart_source/dashboard_chart_source.json b/frappe/desk/doctype/dashboard_chart_source/dashboard_chart_source.json index fbe0ae94f0..4e336d3e27 100644 --- a/frappe/desk/doctype/dashboard_chart_source/dashboard_chart_source.json +++ b/frappe/desk/doctype/dashboard_chart_source/dashboard_chart_source.json @@ -35,7 +35,7 @@ } ], "links": [], - "modified": "2020-06-26 18:00:37.421491", + "modified": "2024-03-23 16:02:16.623353", "modified_by": "Administrator", "module": "Desk", "name": "Dashboard Chart Source", @@ -63,7 +63,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/dashboard_settings/dashboard_settings.json b/frappe/desk/doctype/dashboard_settings/dashboard_settings.json index 504cd4b6f2..86b77187e3 100644 --- a/frappe/desk/doctype/dashboard_settings/dashboard_settings.json +++ b/frappe/desk/doctype/dashboard_settings/dashboard_settings.json @@ -27,7 +27,7 @@ ], "in_create": 1, "links": [], - "modified": "2023-08-28 22:23:42.722543", + "modified": "2024-03-23 16:02:16.763875", "modified_by": "Administrator", "module": "Desk", "name": "Dashboard Settings", @@ -46,7 +46,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/desktop_icon/desktop_icon.json b/frappe/desk/doctype/desktop_icon/desktop_icon.json index ef88346f53..1e42a6d468 100644 --- a/frappe/desk/doctype/desktop_icon/desktop_icon.json +++ b/frappe/desk/doctype/desktop_icon/desktop_icon.json @@ -147,7 +147,7 @@ ], "in_create": 1, "links": [], - "modified": "2022-08-03 12:20:50.577580", + "modified": "2024-03-23 16:02:17.847139", "modified_by": "Administrator", "module": "Desk", "name": "Desktop Icon", @@ -167,7 +167,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "module_name", diff --git a/frappe/desk/doctype/event/event.json b/frappe/desk/doctype/event/event.json index 9a4f63d618..d4af4861d3 100644 --- a/frappe/desk/doctype/event/event.json +++ b/frappe/desk/doctype/event/event.json @@ -295,7 +295,7 @@ "icon": "fa fa-calendar", "idx": 1, "links": [], - "modified": "2024-01-11 07:11:17.467503", + "modified": "2024-03-23 16:03:25.511756", "modified_by": "Administrator", "module": "Desk", "name": "Event", @@ -328,7 +328,7 @@ ], "read_only": 1, "sender_field": "sender", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "subject_field": "subject", diff --git a/frappe/desk/doctype/event_participants/event_participants.json b/frappe/desk/doctype/event_participants/event_participants.json index bbb0a24f3e..454df5dda5 100644 --- a/frappe/desk/doctype/event_participants/event_participants.json +++ b/frappe/desk/doctype/event_participants/event_participants.json @@ -35,14 +35,14 @@ ], "istable": 1, "links": [], - "modified": "2022-10-18 17:49:33.549459", + "modified": "2024-03-23 16:03:25.717745", "modified_by": "Administrator", "module": "Desk", "name": "Event Participants", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/form_tour/form_tour.json b/frappe/desk/doctype/form_tour/form_tour.json index 6c049998c7..0bb4f9c53c 100644 --- a/frappe/desk/doctype/form_tour/form_tour.json +++ b/frappe/desk/doctype/form_tour/form_tour.json @@ -178,7 +178,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 20:24:42.594360", + "modified": "2024-03-23 16:03:25.983797", "modified_by": "Administrator", "module": "Desk", "name": "Form Tour", @@ -202,7 +202,7 @@ "role": "Desk User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/form_tour_step/form_tour_step.json b/frappe/desk/doctype/form_tour_step/form_tour_step.json index 26209ccabe..81c8a60bdb 100644 --- a/frappe/desk/doctype/form_tour_step/form_tour_step.json +++ b/frappe/desk/doctype/form_tour_step/form_tour_step.json @@ -217,13 +217,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2023-05-23 13:09:15.923043", + "modified": "2024-03-23 16:03:26.150327", "modified_by": "Administrator", "module": "Desk", "name": "Form Tour Step", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/global_search_doctype/global_search_doctype.json b/frappe/desk/doctype/global_search_doctype/global_search_doctype.json index 648e8f1824..fd380ab47b 100644 --- a/frappe/desk/doctype/global_search_doctype/global_search_doctype.json +++ b/frappe/desk/doctype/global_search_doctype/global_search_doctype.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-09-13 21:33:55.551941", "doctype": "DocType", "editable_grid": 1, @@ -16,14 +17,16 @@ } ], "istable": 1, - "modified": "2019-09-18 17:59:44.354052", + "links": [], + "modified": "2024-03-23 16:03:26.489242", "modified_by": "Administrator", "module": "Desk", "name": "Global Search DocType", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/global_search_settings/global_search_settings.json b/frappe/desk/doctype/global_search_settings/global_search_settings.json index 6fa25f72b7..db21aefe22 100644 --- a/frappe/desk/doctype/global_search_settings/global_search_settings.json +++ b/frappe/desk/doctype/global_search_settings/global_search_settings.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-09-03 16:08:21.333698", "doctype": "DocType", "editable_grid": 1, @@ -15,7 +16,8 @@ } ], "issingle": 1, - "modified": "2019-10-10 22:05:02.692689", + "links": [], + "modified": "2024-03-23 16:03:26.580482", "modified_by": "Administrator", "module": "Desk", "name": "Global Search Settings", @@ -33,7 +35,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/kanban_board/kanban_board.json b/frappe/desk/doctype/kanban_board/kanban_board.json index 296aa010e8..f15b2e755b 100644 --- a/frappe/desk/doctype/kanban_board/kanban_board.json +++ b/frappe/desk/doctype/kanban_board/kanban_board.json @@ -84,7 +84,7 @@ } ], "links": [], - "modified": "2023-08-28 22:29:29.569670", + "modified": "2024-03-23 16:03:28.240133", "modified_by": "Administrator", "module": "Desk", "name": "Kanban Board", @@ -117,7 +117,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/kanban_board_column/kanban_board_column.json b/frappe/desk/doctype/kanban_board_column/kanban_board_column.json index c0acde5da5..8684b99867 100644 --- a/frappe/desk/doctype/kanban_board_column/kanban_board_column.json +++ b/frappe/desk/doctype/kanban_board_column/kanban_board_column.json @@ -41,14 +41,14 @@ ], "istable": 1, "links": [], - "modified": "2021-12-14 13:13:38.804259", + "modified": "2024-03-23 16:03:28.384170", "modified_by": "Administrator", "module": "Desk", "name": "Kanban Board Column", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/list_filter/list_filter.json b/frappe/desk/doctype/list_filter/list_filter.json index c897aefeb8..2d029a3f6f 100644 --- a/frappe/desk/doctype/list_filter/list_filter.json +++ b/frappe/desk/doctype/list_filter/list_filter.json @@ -36,7 +36,7 @@ ], "in_create": 1, "links": [], - "modified": "2023-08-28 22:32:51.465521", + "modified": "2024-03-23 16:03:29.075357", "modified_by": "Administrator", "module": "Desk", "name": "List Filter", @@ -56,7 +56,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/desk/doctype/list_view_settings/list_view_settings.json b/frappe/desk/doctype/list_view_settings/list_view_settings.json index 69ea379e61..aa5a48a2d0 100644 --- a/frappe/desk/doctype/list_view_settings/list_view_settings.json +++ b/frappe/desk/doctype/list_view_settings/list_view_settings.json @@ -59,7 +59,7 @@ } ], "links": [], - "modified": "2023-02-14 14:46:43.764229", + "modified": "2024-03-23 16:03:29.188038", "modified_by": "Administrator", "module": "Desk", "name": "List View Settings", @@ -78,7 +78,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/module_onboarding/module_onboarding.json b/frappe/desk/doctype/module_onboarding/module_onboarding.json index 1eca83571b..4adda25c8e 100644 --- a/frappe/desk/doctype/module_onboarding/module_onboarding.json +++ b/frappe/desk/doctype/module_onboarding/module_onboarding.json @@ -82,7 +82,7 @@ } ], "links": [], - "modified": "2023-08-28 22:24:02.233272", + "modified": "2024-03-23 16:03:30.074327", "modified_by": "Administrator", "module": "Desk", "name": "Module Onboarding", @@ -111,7 +111,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/note/note.json b/frappe/desk/doctype/note/note.json index 4d60393d3f..989ae049e4 100644 --- a/frappe/desk/doctype/note/note.json +++ b/frappe/desk/doctype/note/note.json @@ -86,7 +86,7 @@ "icon": "fa fa-file-text", "idx": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:31.284619", "modified_by": "Administrator", "module": "Desk", "name": "Note", @@ -140,7 +140,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "title", diff --git a/frappe/desk/doctype/note_seen_by/note_seen_by.json b/frappe/desk/doctype/note_seen_by/note_seen_by.json index 905a043284..16ec72dc30 100644 --- a/frappe/desk/doctype/note_seen_by/note_seen_by.json +++ b/frappe/desk/doctype/note_seen_by/note_seen_by.json @@ -19,14 +19,14 @@ ], "istable": 1, "links": [], - "modified": "2023-04-24 16:14:53.684098", + "modified": "2024-03-23 16:03:31.419397", "modified_by": "Administrator", "module": "Desk", "name": "Note Seen By", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/desk/doctype/notification_log/notification_log.json b/frappe/desk/doctype/notification_log/notification_log.json index 9fbe7324d3..49b16266b4 100644 --- a/frappe/desk/doctype/notification_log/notification_log.json +++ b/frappe/desk/doctype/notification_log/notification_log.json @@ -103,7 +103,7 @@ "hide_toolbar": 1, "in_create": 1, "links": [], - "modified": "2023-11-18 22:40:12.145940", + "modified": "2024-03-23 16:03:31.715461", "modified_by": "Administrator", "module": "Desk", "name": "Notification Log", @@ -119,7 +119,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "subject", diff --git a/frappe/desk/doctype/notification_log/notification_log.py b/frappe/desk/doctype/notification_log/notification_log.py index 70e726fd97..70f31606c1 100644 --- a/frappe/desk/doctype/notification_log/notification_log.py +++ b/frappe/desk/doctype/notification_log/notification_log.py @@ -46,7 +46,7 @@ class NotificationLog(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("Notification Log") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) def get_permission_query_conditions(for_user): @@ -165,7 +165,7 @@ def get_email_header(doc, language: str | None = None): @frappe.whitelist() def get_notification_logs(limit=20): notification_logs = frappe.db.get_list( - "Notification Log", fields=["*"], limit=limit, order_by="modified desc" + "Notification Log", fields=["*"], limit=limit, order_by="creation desc" ) users = [log.from_user for log in notification_logs] diff --git a/frappe/desk/doctype/notification_settings/notification_settings.json b/frappe/desk/doctype/notification_settings/notification_settings.json index b4ea0fd1b9..d64bf3fe4d 100644 --- a/frappe/desk/doctype/notification_settings/notification_settings.json +++ b/frappe/desk/doctype/notification_settings/notification_settings.json @@ -119,7 +119,7 @@ "in_create": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2023-12-01 12:46:15.490640", + "modified": "2024-03-23 16:03:31.952985", "modified_by": "Administrator", "module": "Desk", "name": "Notification Settings", @@ -139,7 +139,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/notification_subscribed_document/notification_subscribed_document.json b/frappe/desk/doctype/notification_subscribed_document/notification_subscribed_document.json index b3f4046163..16adb001fe 100644 --- a/frappe/desk/doctype/notification_subscribed_document/notification_subscribed_document.json +++ b/frappe/desk/doctype/notification_subscribed_document/notification_subscribed_document.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-10-09 15:04:39.504787", "doctype": "DocType", "editable_grid": 1, @@ -17,14 +18,16 @@ } ], "istable": 1, - "modified": "2019-10-09 16:02:00.049237", + "links": [], + "modified": "2024-03-23 16:03:32.089922", "modified_by": "Administrator", "module": "Desk", "name": "Notification Subscribed Document", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/number_card/number_card.json b/frappe/desk/doctype/number_card/number_card.json index dbe5177bdb..2bbe9cb65d 100644 --- a/frappe/desk/doctype/number_card/number_card.json +++ b/frappe/desk/doctype/number_card/number_card.json @@ -203,7 +203,7 @@ } ], "links": [], - "modified": "2023-11-09 13:44:00.280846", + "modified": "2024-03-23 16:03:32.189147", "modified_by": "Administrator", "module": "Desk", "name": "Number Card", @@ -244,7 +244,7 @@ } ], "search_fields": "label, document_type", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "label", diff --git a/frappe/desk/doctype/number_card_link/number_card_link.json b/frappe/desk/doctype/number_card_link/number_card_link.json index ac035b32d8..17b6636a87 100644 --- a/frappe/desk/doctype/number_card_link/number_card_link.json +++ b/frappe/desk/doctype/number_card_link/number_card_link.json @@ -18,14 +18,15 @@ ], "istable": 1, "links": [], - "modified": "2020-04-19 17:45:11.878472", + "modified": "2024-03-23 16:03:32.353267", "modified_by": "Administrator", "module": "Desk", "name": "Number Card Link", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/onboarding_permission/onboarding_permission.json b/frappe/desk/doctype/onboarding_permission/onboarding_permission.json index f2a9dc35ce..bebe379abc 100644 --- a/frappe/desk/doctype/onboarding_permission/onboarding_permission.json +++ b/frappe/desk/doctype/onboarding_permission/onboarding_permission.json @@ -19,14 +19,15 @@ ], "istable": 1, "links": [], - "modified": "2020-04-30 18:28:40.423802", + "modified": "2024-03-23 16:03:32.987560", "modified_by": "Administrator", "module": "Desk", "name": "Onboarding Permission", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/onboarding_step/onboarding_step.json b/frappe/desk/doctype/onboarding_step/onboarding_step.json index f81550b352..b16ee581e4 100644 --- a/frappe/desk/doctype/onboarding_step/onboarding_step.json +++ b/frappe/desk/doctype/onboarding_step/onboarding_step.json @@ -217,7 +217,7 @@ } ], "links": [], - "modified": "2023-08-28 22:23:48.174317", + "modified": "2024-03-23 16:03:33.078443", "modified_by": "Administrator", "module": "Desk", "name": "Onboarding Step", @@ -248,7 +248,7 @@ ], "quick_entry": 1, "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/onboarding_step_map/onboarding_step_map.json b/frappe/desk/doctype/onboarding_step_map/onboarding_step_map.json index e501a0b143..9f39202e62 100644 --- a/frappe/desk/doctype/onboarding_step_map/onboarding_step_map.json +++ b/frappe/desk/doctype/onboarding_step_map/onboarding_step_map.json @@ -19,14 +19,15 @@ ], "istable": 1, "links": [], - "modified": "2020-04-28 22:06:09.503406", + "modified": "2024-03-23 16:03:33.218395", "modified_by": "Administrator", "module": "Desk", "name": "Onboarding Step Map", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/route_history/route_history.json b/frappe/desk/doctype/route_history/route_history.json index 0b96277431..1f9e8d2fe3 100644 --- a/frappe/desk/doctype/route_history/route_history.json +++ b/frappe/desk/doctype/route_history/route_history.json @@ -31,7 +31,7 @@ ], "in_create": 1, "links": [], - "modified": "2023-12-04 04:41:32.448331", + "modified": "2024-03-23 16:03:37.217673", "modified_by": "Administrator", "module": "Desk", "name": "Route History", @@ -47,7 +47,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "route" diff --git a/frappe/desk/doctype/route_history/route_history.py b/frappe/desk/doctype/route_history/route_history.py index 5c0c37d4a7..ff64636b71 100644 --- a/frappe/desk/doctype/route_history/route_history.py +++ b/frappe/desk/doctype/route_history/route_history.py @@ -25,7 +25,7 @@ class RouteHistory(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("Route History") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) @frappe.whitelist() diff --git a/frappe/desk/doctype/system_console/system_console.json b/frappe/desk/doctype/system_console/system_console.json index 9573e23b52..a59ab01b0b 100644 --- a/frappe/desk/doctype/system_console/system_console.json +++ b/frappe/desk/doctype/system_console/system_console.json @@ -86,7 +86,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2023-11-03 13:02:00.706806", + "modified": "2024-03-23 16:03:39.355553", "modified_by": "Administrator", "module": "Desk", "name": "System Console", @@ -102,8 +102,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/desk/doctype/tag/tag.json b/frappe/desk/doctype/tag/tag.json index ad9838d10f..5385a89c72 100644 --- a/frappe/desk/doctype/tag/tag.json +++ b/frappe/desk/doctype/tag/tag.json @@ -1,4 +1,5 @@ { + "actions": [], "allow_rename": 1, "autoname": "Prompt", "creation": "2016-05-25 09:43:44.767581", @@ -15,7 +16,8 @@ "label": "Description" } ], - "modified": "2019-09-25 17:47:41.712237", + "links": [], + "modified": "2024-03-23 16:03:39.682626", "modified_by": "Administrator", "module": "Desk", "name": "Tag", @@ -45,6 +47,7 @@ "write": 1 } ], - "sort_field": "modified", - "sort_order": "DESC" -} + "sort_field": "creation", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/frappe/desk/doctype/tag_link/tag_link.json b/frappe/desk/doctype/tag_link/tag_link.json index 9142279fa3..c80ef8603b 100644 --- a/frappe/desk/doctype/tag_link/tag_link.json +++ b/frappe/desk/doctype/tag_link/tag_link.json @@ -46,7 +46,7 @@ } ], "links": [], - "modified": "2021-09-20 16:53:37.217998", + "modified": "2024-03-23 16:03:39.781828", "modified_by": "Administrator", "module": "Desk", "name": "Tag Link", @@ -77,7 +77,8 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/todo/todo.json b/frappe/desk/doctype/todo/todo.json index c3b534d272..3186a0a846 100644 --- a/frappe/desk/doctype/todo/todo.json +++ b/frappe/desk/doctype/todo/todo.json @@ -161,7 +161,7 @@ "icon": "fa fa-check", "idx": 2, "links": [], - "modified": "2023-10-05 07:44:38.476400", + "modified": "2024-03-23 16:03:58.758787", "modified_by": "Administrator", "module": "Desk", "name": "ToDo", @@ -193,10 +193,11 @@ "quick_entry": 1, "search_fields": "description, reference_type, reference_name", "sender_field": "sender", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "subject_field": "description", "title_field": "description", "track_changes": 1, "track_seen": 1 -} +} \ No newline at end of file diff --git a/frappe/desk/doctype/workspace/workspace.json b/frappe/desk/doctype/workspace/workspace.json index e4f58b570a..bd488aadf0 100644 --- a/frappe/desk/doctype/workspace/workspace.json +++ b/frappe/desk/doctype/workspace/workspace.json @@ -219,7 +219,7 @@ ], "in_create": 1, "links": [], - "modified": "2023-08-25 15:04:03.419848", + "modified": "2024-03-23 16:04:05.604044", "modified_by": "Administrator", "module": "Desk", "name": "Workspace", @@ -239,7 +239,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/workspace_chart/workspace_chart.json b/frappe/desk/doctype/workspace_chart/workspace_chart.json index 0d800496af..39db7bd48c 100644 --- a/frappe/desk/doctype/workspace_chart/workspace_chart.json +++ b/frappe/desk/doctype/workspace_chart/workspace_chart.json @@ -26,14 +26,15 @@ ], "istable": 1, "links": [], - "modified": "2021-01-12 13:13:25.781925", + "modified": "2024-03-23 16:04:05.810019", "modified_by": "Administrator", "module": "Desk", "name": "Workspace Chart", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/desk/doctype/workspace_custom_block/workspace_custom_block.json b/frappe/desk/doctype/workspace_custom_block/workspace_custom_block.json index 090719de3a..2c2b70d183 100644 --- a/frappe/desk/doctype/workspace_custom_block/workspace_custom_block.json +++ b/frappe/desk/doctype/workspace_custom_block/workspace_custom_block.json @@ -27,13 +27,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2023-05-17 14:50:45.575609", + "modified": "2024-03-23 16:04:05.916601", "modified_by": "Administrator", "module": "Desk", "name": "Workspace Custom Block", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/desk/doctype/workspace_link/workspace_link.json b/frappe/desk/doctype/workspace_link/workspace_link.json index 5f0a082a83..e11f606b0e 100644 --- a/frappe/desk/doctype/workspace_link/workspace_link.json +++ b/frappe/desk/doctype/workspace_link/workspace_link.json @@ -121,14 +121,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-01-23 17:39:16.833318", + "modified": "2024-03-23 16:04:06.025772", "modified_by": "Administrator", "module": "Desk", "name": "Workspace Link", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/workspace_number_card/workspace_number_card.json b/frappe/desk/doctype/workspace_number_card/workspace_number_card.json index f9e3865d74..02d9a9da44 100644 --- a/frappe/desk/doctype/workspace_number_card/workspace_number_card.json +++ b/frappe/desk/doctype/workspace_number_card/workspace_number_card.json @@ -28,13 +28,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2023-02-15 01:16:26.216201", + "modified": "2024-03-23 16:04:06.156245", "modified_by": "Administrator", "module": "Desk", "name": "Workspace Number Card", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/desk/doctype/workspace_quick_list/workspace_quick_list.json b/frappe/desk/doctype/workspace_quick_list/workspace_quick_list.json index 1542ebe03c..5cbf4126cb 100644 --- a/frappe/desk/doctype/workspace_quick_list/workspace_quick_list.json +++ b/frappe/desk/doctype/workspace_quick_list/workspace_quick_list.json @@ -46,14 +46,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2022-05-12 13:48:40.617623", + "modified": "2024-03-23 16:04:06.260947", "modified_by": "Administrator", "module": "Desk", "name": "Workspace Quick List", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/doctype/workspace_shortcut/workspace_shortcut.json b/frappe/desk/doctype/workspace_shortcut/workspace_shortcut.json index e47487eaaf..bc6d6b5221 100644 --- a/frappe/desk/doctype/workspace_shortcut/workspace_shortcut.json +++ b/frappe/desk/doctype/workspace_shortcut/workspace_shortcut.json @@ -115,14 +115,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2023-11-27 14:13:38.489737", + "modified": "2024-03-23 16:04:06.370271", "modified_by": "Administrator", "module": "Desk", "name": "Workspace Shortcut", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/desk/form/utils.py b/frappe/desk/form/utils.py index b93ebdb5bc..2d8406790d 100644 --- a/frappe/desk/form/utils.py +++ b/frappe/desk/form/utils.py @@ -69,7 +69,7 @@ def update_comment(name, content): @frappe.whitelist() -def get_next(doctype, value, prev, filters=None, sort_order="desc", sort_field="modified"): +def get_next(doctype, value, prev, filters=None, sort_order="desc", sort_field="creation"): prev = int(prev) if not filters: filters = [] diff --git a/frappe/email/doctype/auto_email_report/auto_email_report.json b/frappe/email/doctype/auto_email_report/auto_email_report.json index 41beac3e3a..0eadc7d74f 100644 --- a/frappe/email/doctype/auto_email_report/auto_email_report.json +++ b/frappe/email/doctype/auto_email_report/auto_email_report.json @@ -220,7 +220,7 @@ } ], "links": [], - "modified": "2024-02-04 13:31:08.624648", + "modified": "2024-03-23 16:01:28.131581", "modified_by": "Administrator", "module": "Email", "name": "Auto Email Report", @@ -251,7 +251,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/email/doctype/document_follow/document_follow.json b/frappe/email/doctype/document_follow/document_follow.json index 5dec268217..2261fcb541 100644 --- a/frappe/email/doctype/document_follow/document_follow.json +++ b/frappe/email/doctype/document_follow/document_follow.json @@ -41,7 +41,7 @@ "in_create": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 22:34:53.394652", + "modified": "2024-03-23 16:03:22.555030", "modified_by": "Administrator", "module": "Email", "name": "Document Follow", @@ -73,7 +73,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/email/doctype/email_account/email_account.json b/frappe/email/doctype/email_account/email_account.json index d61165b787..8b3d7d2969 100644 --- a/frappe/email/doctype/email_account/email_account.json +++ b/frappe/email/doctype/email_account/email_account.json @@ -29,6 +29,7 @@ "default_incoming", "use_imap", "use_ssl", + "validate_ssl_certificate", "use_starttls", "email_server", "incoming_port", @@ -611,12 +612,22 @@ "label": "Connected User", "mandatory_depends_on": "eval: doc.auth_method === \"OAuth\"", "options": "User" + }, + { + "default": "1", + "depends_on": "eval:!doc.domain && doc.enable_incoming && doc.use_ssl", + "fetch_from": "domain.use_ssl", + "fieldname": "validate_ssl_certificate", + "fieldtype": "Check", + "hide_days": 1, + "hide_seconds": 1, + "label": "Validate SSL Certificate" } ], "icon": "fa fa-inbox", "index_web_pages_for_search": 1, "links": [], - "modified": "2023-06-05 15:03:08.538819", + "modified": "2024-03-23 16:03:23.581556", "modified_by": "Administrator", "module": "Email", "name": "Email Account", @@ -635,7 +646,7 @@ "role": "Inbox User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/email/doctype/email_domain/email_domain.json b/frappe/email/doctype/email_domain/email_domain.json index 5cb4c19940..3940635f08 100644 --- a/frappe/email/doctype/email_domain/email_domain.json +++ b/frappe/email/doctype/email_domain/email_domain.json @@ -12,6 +12,7 @@ "email_server", "use_imap", "use_ssl", + "validate_ssl_certificate", "use_starttls", "column_break_9", "incoming_port", @@ -20,6 +21,7 @@ "smtp_server", "use_tls", "use_ssl_for_outgoing", + "validate_ssl_certificate_for_outgoing", "column_break_18", "smtp_port", "append_emails_to_sent_folder" @@ -125,6 +127,20 @@ { "fieldname": "column_break_18", "fieldtype": "Column Break" + }, + { + "default": "1", + "depends_on": "eval:doc.use_ssl", + "fieldname": "validate_ssl_certificate", + "fieldtype": "Check", + "label": "Validate SSL Certificate" + }, + { + "default": "1", + "depends_on": "eval:doc.use_ssl", + "fieldname": "validate_ssl_certificate_for_outgoing", + "fieldtype": "Check", + "label": "Validate SSL Certificate" } ], "icon": "icon-inbox", @@ -134,7 +150,7 @@ "link_fieldname": "domain" } ], - "modified": "2023-06-05 12:55:06.434541", + "modified": "2024-03-23 16:03:23.836849", "modified_by": "Administrator", "module": "Email", "name": "Email Domain", @@ -150,8 +166,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/email/doctype/email_flag_queue/email_flag_queue.json b/frappe/email/doctype/email_flag_queue/email_flag_queue.json index 14b1ec4f53..757a3a92dc 100644 --- a/frappe/email/doctype/email_flag_queue/email_flag_queue.json +++ b/frappe/email/doctype/email_flag_queue/email_flag_queue.json @@ -45,7 +45,7 @@ ], "in_create": 1, "links": [], - "modified": "2021-11-30 09:51:34.489932", + "modified": "2024-03-23 16:03:24.005944", "modified_by": "Administrator", "module": "Email", "name": "Email Flag Queue", @@ -62,6 +62,7 @@ "share": 1 } ], - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/email/doctype/email_group/email_group.json b/frappe/email/doctype/email_group/email_group.json index 1e90beaecb..9f3ef47d32 100644 --- a/frappe/email/doctype/email_group/email_group.json +++ b/frappe/email/doctype/email_group/email_group.json @@ -78,7 +78,7 @@ "link_fieldname": "email_group" } ], - "modified": "2023-11-24 18:35:17.268492", + "modified": "2024-03-23 16:03:24.125724", "modified_by": "Administrator", "module": "Email", "name": "Email Group", @@ -101,7 +101,7 @@ ], "quick_entry": 1, "show_name_in_global_search": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/email/doctype/email_group_member/email_group_member.json b/frappe/email/doctype/email_group_member/email_group_member.json index 0d68674101..5ccbfb9c0c 100644 --- a/frappe/email/doctype/email_group_member/email_group_member.json +++ b/frappe/email/doctype/email_group_member/email_group_member.json @@ -41,7 +41,7 @@ } ], "links": [], - "modified": "2023-11-25 16:54:59.828669", + "modified": "2024-03-23 16:03:24.266714", "modified_by": "Administrator", "module": "Email", "name": "Email Group Member", @@ -63,7 +63,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "email", diff --git a/frappe/email/doctype/email_queue/email_queue.json b/frappe/email/doctype/email_queue/email_queue.json index ea1389d8e9..6c91e3a2eb 100644 --- a/frappe/email/doctype/email_queue/email_queue.json +++ b/frappe/email/doctype/email_queue/email_queue.json @@ -154,7 +154,7 @@ "idx": 1, "in_create": 1, "links": [], - "modified": "2023-06-09 14:31:52.789186", + "modified": "2024-03-23 16:03:24.379339", "modified_by": "Administrator", "module": "Email", "name": "Email Queue", @@ -170,7 +170,7 @@ "role": "System Manager" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/email/doctype/email_queue/email_queue.py b/frappe/email/doctype/email_queue/email_queue.py index a297669ff6..a142845223 100644 --- a/frappe/email/doctype/email_queue/email_queue.py +++ b/frappe/email/doctype/email_queue/email_queue.py @@ -196,7 +196,7 @@ class EmailQueue(Document): # Delete queue table ( - frappe.qb.from_(email_queue).delete().where(email_queue.modified < (Now() - Interval(days=days))) + frappe.qb.from_(email_queue).delete().where(email_queue.creation < (Now() - Interval(days=days))) ).run() # delete child tables, note that this has potential to leave some orphan @@ -205,7 +205,7 @@ class EmailQueue(Document): ( frappe.qb.from_(email_recipient) .delete() - .where(email_recipient.modified < (Now() - Interval(days=days))) + .where(email_recipient.creation < (Now() - Interval(days=days))) ).run() @frappe.whitelist() diff --git a/frappe/email/doctype/email_queue/test_email_queue.py b/frappe/email/doctype/email_queue/test_email_queue.py index 74ea856bf3..4165fa5edc 100644 --- a/frappe/email/doctype/email_queue/test_email_queue.py +++ b/frappe/email/doctype/email_queue/test_email_queue.py @@ -27,8 +27,8 @@ class TestEmailQueue(FrappeTestCase): } ).insert() - old_record.modified = "2010-01-01 00:00:01" - old_record.recipients[0].modified = old_record.modified + old_record.creation = "2010-01-01 00:00:01" + old_record.recipients[0].creation = old_record.creation old_record.db_update_all() new_record = frappe.copy_doc(old_record) diff --git a/frappe/email/doctype/email_queue_recipient/email_queue_recipient.json b/frappe/email/doctype/email_queue_recipient/email_queue_recipient.json index 406449e26d..b0005d4768 100644 --- a/frappe/email/doctype/email_queue_recipient/email_queue_recipient.json +++ b/frappe/email/doctype/email_queue_recipient/email_queue_recipient.json @@ -33,14 +33,14 @@ ], "istable": 1, "links": [], - "modified": "2022-09-06 13:38:10.644417", + "modified": "2024-03-23 16:03:24.564197", "modified_by": "Administrator", "module": "Email", "name": "Email Queue Recipient", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/email/doctype/email_rule/email_rule.json b/frappe/email/doctype/email_rule/email_rule.json index 20e296290d..b469197554 100644 --- a/frappe/email/doctype/email_rule/email_rule.json +++ b/frappe/email/doctype/email_rule/email_rule.json @@ -26,7 +26,7 @@ } ], "links": [], - "modified": "2022-08-03 12:20:51.443237", + "modified": "2024-03-23 16:03:24.671100", "modified_by": "Administrator", "module": "Email", "name": "Email Rule", @@ -43,7 +43,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/email/doctype/email_template/email_template.json b/frappe/email/doctype/email_template/email_template.json index 6bf08cd534..ccce3961cf 100644 --- a/frappe/email/doctype/email_template/email_template.json +++ b/frappe/email/doctype/email_template/email_template.json @@ -57,7 +57,7 @@ ], "icon": "fa fa-comment", "links": [], - "modified": "2023-12-12 20:01:07.080625", + "modified": "2024-03-23 16:03:24.779791", "modified_by": "Administrator", "module": "Email", "name": "Email Template", @@ -81,7 +81,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/email/doctype/email_unsubscribe/email_unsubscribe.json b/frappe/email/doctype/email_unsubscribe/email_unsubscribe.json index 38df531c35..b5ddb58fcd 100644 --- a/frappe/email/doctype/email_unsubscribe/email_unsubscribe.json +++ b/frappe/email/doctype/email_unsubscribe/email_unsubscribe.json @@ -43,7 +43,7 @@ } ], "links": [], - "modified": "2022-08-03 12:20:51.694626", + "modified": "2024-03-23 16:03:24.894291", "modified_by": "Administrator", "module": "Email", "name": "Email Unsubscribe", @@ -63,7 +63,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/email/doctype/imap_folder/imap_folder.json b/frappe/email/doctype/imap_folder/imap_folder.json index bab50dea39..8a9a65241b 100644 --- a/frappe/email/doctype/imap_folder/imap_folder.json +++ b/frappe/email/doctype/imap_folder/imap_folder.json @@ -41,13 +41,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-09-21 11:53:00.811236", + "modified": "2024-03-23 16:03:27.792499", "modified_by": "Administrator", "module": "Email", "name": "IMAP Folder", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/email/doctype/newsletter/newsletter.json b/frappe/email/doctype/newsletter/newsletter.json index e03cc506e6..6b000e89a3 100644 --- a/frappe/email/doctype/newsletter/newsletter.json +++ b/frappe/email/doctype/newsletter/newsletter.json @@ -253,7 +253,7 @@ "index_web_pages_for_search": 1, "is_published_field": "published", "links": [], - "modified": "2024-01-30 14:05:50.645802", + "modified": "2024-03-23 16:03:30.890080", "modified_by": "Administrator", "module": "Email", "name": "Newsletter", @@ -273,7 +273,7 @@ } ], "route": "newsletters", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", "states": [], "title_field": "subject", diff --git a/frappe/email/doctype/newsletter_attachment/newsletter_attachment.json b/frappe/email/doctype/newsletter_attachment/newsletter_attachment.json index e2add0ed64..47ff57b235 100644 --- a/frappe/email/doctype/newsletter_attachment/newsletter_attachment.json +++ b/frappe/email/doctype/newsletter_attachment/newsletter_attachment.json @@ -20,12 +20,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-12-06 16:37:47.481057", + "modified": "2024-03-23 16:03:31.101104", "modified_by": "Administrator", "module": "Email", "name": "Newsletter Attachment", "owner": "Administrator", "permissions": [], - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/email/doctype/newsletter_email_group/newsletter_email_group.json b/frappe/email/doctype/newsletter_email_group/newsletter_email_group.json index b8c1afe062..b8f1dea630 100644 --- a/frappe/email/doctype/newsletter_email_group/newsletter_email_group.json +++ b/frappe/email/doctype/newsletter_email_group/newsletter_email_group.json @@ -29,14 +29,15 @@ ], "istable": 1, "links": [], - "modified": "2021-12-06 20:12:08.420240", + "modified": "2024-03-23 16:03:31.190219", "modified_by": "Administrator", "module": "Email", "name": "Newsletter Email Group", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/email/doctype/notification/notification.json b/frappe/email/doctype/notification/notification.json index 3626cc29bc..83187d8c33 100644 --- a/frappe/email/doctype/notification/notification.json +++ b/frappe/email/doctype/notification/notification.json @@ -291,7 +291,7 @@ "icon": "fa fa-envelope", "index_web_pages_for_search": 1, "links": [], - "modified": "2023-11-17 08:48:25.616203", + "modified": "2024-03-23 16:03:31.519921", "modified_by": "Administrator", "module": "Email", "name": "Notification", @@ -309,7 +309,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "subject", diff --git a/frappe/email/doctype/notification_recipient/notification_recipient.json b/frappe/email/doctype/notification_recipient/notification_recipient.json index 0670320a77..631cc3f645 100644 --- a/frappe/email/doctype/notification_recipient/notification_recipient.json +++ b/frappe/email/doctype/notification_recipient/notification_recipient.json @@ -49,13 +49,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2020-09-01 17:40:27.289105", + "modified": "2024-03-23 16:03:31.847915", "modified_by": "Administrator", "module": "Email", "name": "Notification Recipient", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/email/doctype/unhandled_email/unhandled_email.json b/frappe/email/doctype/unhandled_email/unhandled_email.json index d904536936..da5d96ba3b 100644 --- a/frappe/email/doctype/unhandled_email/unhandled_email.json +++ b/frappe/email/doctype/unhandled_email/unhandled_email.json @@ -43,7 +43,7 @@ ], "in_create": 1, "links": [], - "modified": "2022-08-03 12:20:51.822287", + "modified": "2024-03-23 16:03:59.723830", "modified_by": "Administrator", "module": "Email", "name": "Unhandled Email", @@ -54,7 +54,7 @@ "role": "System Manager" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/email/doctype/unhandled_email/unhandled_email.py b/frappe/email/doctype/unhandled_email/unhandled_email.py index f70d0e48b3..9a10af6f99 100644 --- a/frappe/email/doctype/unhandled_email/unhandled_email.py +++ b/frappe/email/doctype/unhandled_email/unhandled_email.py @@ -26,6 +26,6 @@ class UnhandledEmail(Document): frappe.db.delete( "Unhandled Email", { - "modified": ("<", frappe.utils.add_days(frappe.utils.nowdate(), -1 * days)), + "creation": ("<", frappe.utils.add_days(frappe.utils.nowdate(), -1 * days)), }, ) diff --git a/frappe/geo/doctype/currency/currency.json b/frappe/geo/doctype/currency/currency.json index 9a4df0f117..20a1b77313 100644 --- a/frappe/geo/doctype/currency/currency.json +++ b/frappe/geo/doctype/currency/currency.json @@ -82,7 +82,7 @@ "idx": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2024-01-30 13:18:12.053557", + "modified": "2024-03-23 16:01:31.809369", "modified_by": "Administrator", "module": "Geo", "name": "Currency", @@ -119,7 +119,7 @@ "role": "Purchase User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/connected_app/connected_app.json b/frappe/integrations/doctype/connected_app/connected_app.json index b66cd9014b..201f161120 100644 --- a/frappe/integrations/doctype/connected_app/connected_app.json +++ b/frappe/integrations/doctype/connected_app/connected_app.json @@ -139,7 +139,7 @@ "link_fieldname": "connected_app" } ], - "modified": "2022-01-07 05:28:45.073041", + "modified": "2024-03-23 16:01:30.633764", "modified_by": "Administrator", "module": "Integrations", "name": "Connected App", @@ -162,8 +162,9 @@ "role": "All" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "title_field": "provider_name", "track_changes": 1 } \ No newline at end of file diff --git a/frappe/integrations/doctype/dropbox_settings/dropbox_settings.json b/frappe/integrations/doctype/dropbox_settings/dropbox_settings.json index 15535f08c4..121006bb8b 100644 --- a/frappe/integrations/doctype/dropbox_settings/dropbox_settings.json +++ b/frappe/integrations/doctype/dropbox_settings/dropbox_settings.json @@ -100,7 +100,7 @@ "in_create": 1, "issingle": 1, "links": [], - "modified": "2023-03-20 14:20:19.180611", + "modified": "2024-03-23 16:03:23.176690", "modified_by": "Administrator", "module": "Integrations", "name": "Dropbox Settings", @@ -119,7 +119,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/google_calendar/google_calendar.json b/frappe/integrations/doctype/google_calendar/google_calendar.json index 102569e20d..59a85282b1 100644 --- a/frappe/integrations/doctype/google_calendar/google_calendar.json +++ b/frappe/integrations/doctype/google_calendar/google_calendar.json @@ -110,7 +110,7 @@ } ], "links": [], - "modified": "2023-08-28 22:21:44.238862", + "modified": "2024-03-23 16:03:26.682486", "modified_by": "Administrator", "module": "Integrations", "name": "Google Calendar", @@ -143,7 +143,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/google_contacts/google_contacts.json b/frappe/integrations/doctype/google_contacts/google_contacts.json index 3858217a65..19e288cb8f 100644 --- a/frappe/integrations/doctype/google_contacts/google_contacts.json +++ b/frappe/integrations/doctype/google_contacts/google_contacts.json @@ -99,7 +99,7 @@ } ], "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:26.863560", "modified_by": "Administrator", "module": "Integrations", "name": "Google Contacts", @@ -125,7 +125,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/google_drive/google_drive.json b/frappe/integrations/doctype/google_drive/google_drive.json index 7bc967a6f8..ece2d429a0 100644 --- a/frappe/integrations/doctype/google_drive/google_drive.json +++ b/frappe/integrations/doctype/google_drive/google_drive.json @@ -102,7 +102,7 @@ ], "issingle": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:26.999110", "modified_by": "Administrator", "module": "Integrations", "name": "Google Drive", @@ -119,7 +119,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/google_settings/google_settings.json b/frappe/integrations/doctype/google_settings/google_settings.json index ee48fde97b..0f86cab7ba 100644 --- a/frappe/integrations/doctype/google_settings/google_settings.json +++ b/frappe/integrations/doctype/google_settings/google_settings.json @@ -75,7 +75,7 @@ ], "issingle": 1, "links": [], - "modified": "2024-01-16 13:19:22.365362", + "modified": "2024-03-23 16:03:27.101069", "modified_by": "Administrator", "module": "Integrations", "name": "Google Settings", @@ -93,7 +93,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/integration_request/integration_request.json b/frappe/integrations/doctype/integration_request/integration_request.json index 8565b2a0fd..7898a86cc4 100644 --- a/frappe/integrations/doctype/integration_request/integration_request.json +++ b/frappe/integrations/doctype/integration_request/integration_request.json @@ -129,7 +129,7 @@ ], "in_create": 1, "links": [], - "modified": "2023-10-09 09:36:23.856188", + "modified": "2024-03-23 16:03:28.090977", "modified_by": "Administrator", "module": "Integrations", "name": "Integration Request", @@ -146,7 +146,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "integration_request_service", diff --git a/frappe/integrations/doctype/integration_request/integration_request.py b/frappe/integrations/doctype/integration_request/integration_request.py index 2271fe0ab6..d29a78fc19 100644 --- a/frappe/integrations/doctype/integration_request/integration_request.py +++ b/frappe/integrations/doctype/integration_request/integration_request.py @@ -40,7 +40,7 @@ class IntegrationRequest(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("Integration Request") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) def update_status(self, params, status): data = json.loads(self.data) diff --git a/frappe/integrations/doctype/ldap_group_mapping/ldap_group_mapping.json b/frappe/integrations/doctype/ldap_group_mapping/ldap_group_mapping.json index 9bfe1eac56..1bf268408d 100644 --- a/frappe/integrations/doctype/ldap_group_mapping/ldap_group_mapping.json +++ b/frappe/integrations/doctype/ldap_group_mapping/ldap_group_mapping.json @@ -27,14 +27,14 @@ ], "istable": 1, "links": [], - "modified": "2022-07-07 16:28:44.828514", + "modified": "2024-03-23 16:03:28.603657", "modified_by": "Administrator", "module": "Integrations", "name": "LDAP Group Mapping", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/ldap_settings/ldap_settings.json b/frappe/integrations/doctype/ldap_settings/ldap_settings.json index 0b3bf06239..3c5d65a1fe 100644 --- a/frappe/integrations/doctype/ldap_settings/ldap_settings.json +++ b/frappe/integrations/doctype/ldap_settings/ldap_settings.json @@ -301,7 +301,7 @@ "in_create": 1, "issingle": 1, "links": [], - "modified": "2023-01-24 11:20:06.049708", + "modified": "2024-03-23 16:03:28.700269", "modified_by": "Administrator", "module": "Integrations", "name": "LDAP Settings", @@ -320,7 +320,7 @@ } ], "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/oauth_authorization_code/oauth_authorization_code.json b/frappe/integrations/doctype/oauth_authorization_code/oauth_authorization_code.json index 2cd21bcaf4..35f877e79b 100644 --- a/frappe/integrations/doctype/oauth_authorization_code/oauth_authorization_code.json +++ b/frappe/integrations/doctype/oauth_authorization_code/oauth_authorization_code.json @@ -90,7 +90,7 @@ } ], "links": [], - "modified": "2021-04-26 07:23:02.980612", + "modified": "2024-03-23 16:03:32.445085", "modified_by": "Administrator", "module": "Integrations", "name": "OAuth Authorization Code", @@ -107,6 +107,7 @@ "share": 1 } ], - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/integrations/doctype/oauth_bearer_token/oauth_bearer_token.json b/frappe/integrations/doctype/oauth_bearer_token/oauth_bearer_token.json index 2060c48fb9..317bb2c6f5 100644 --- a/frappe/integrations/doctype/oauth_bearer_token/oauth_bearer_token.json +++ b/frappe/integrations/doctype/oauth_bearer_token/oauth_bearer_token.json @@ -75,7 +75,7 @@ } ], "links": [], - "modified": "2023-04-07 07:08:00.249740", + "modified": "2024-03-23 16:03:32.559867", "modified_by": "Administrator", "module": "Integrations", "name": "OAuth Bearer Token", @@ -93,7 +93,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/integrations/doctype/oauth_client/oauth_client.json b/frappe/integrations/doctype/oauth_client/oauth_client.json index 4418f6b126..5c93809111 100644 --- a/frappe/integrations/doctype/oauth_client/oauth_client.json +++ b/frappe/integrations/doctype/oauth_client/oauth_client.json @@ -117,7 +117,7 @@ } ], "links": [], - "modified": "2023-07-17 07:06:35.765981", + "modified": "2024-03-23 16:03:32.679227", "modified_by": "Administrator", "module": "Integrations", "name": "OAuth Client", @@ -136,7 +136,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "app_name", diff --git a/frappe/integrations/doctype/oauth_provider_settings/oauth_provider_settings.json b/frappe/integrations/doctype/oauth_provider_settings/oauth_provider_settings.json index 219a87f2f4..d091e0480c 100644 --- a/frappe/integrations/doctype/oauth_provider_settings/oauth_provider_settings.json +++ b/frappe/integrations/doctype/oauth_provider_settings/oauth_provider_settings.json @@ -18,7 +18,7 @@ ], "issingle": 1, "links": [], - "modified": "2022-08-03 12:20:52.328415", + "modified": "2024-03-23 16:03:32.808772", "modified_by": "Administrator", "module": "Integrations", "name": "OAuth Provider Settings", @@ -36,7 +36,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/oauth_scope/oauth_scope.json b/frappe/integrations/doctype/oauth_scope/oauth_scope.json index 3a6e528999..052394c5f6 100644 --- a/frappe/integrations/doctype/oauth_scope/oauth_scope.json +++ b/frappe/integrations/doctype/oauth_scope/oauth_scope.json @@ -17,14 +17,15 @@ ], "istable": 1, "links": [], - "modified": "2020-07-15 22:15:18.930632", + "modified": "2024-03-23 16:03:32.890426", "modified_by": "Administrator", "module": "Integrations", "name": "OAuth Scope", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/integrations/doctype/push_notification_settings/push_notification_settings.json b/frappe/integrations/doctype/push_notification_settings/push_notification_settings.json index da1d6373a8..2d045070ec 100644 --- a/frappe/integrations/doctype/push_notification_settings/push_notification_settings.json +++ b/frappe/integrations/doctype/push_notification_settings/push_notification_settings.json @@ -46,7 +46,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2024-02-28 11:03:30.518196", + "modified": "2024-03-23 16:03:35.768559", "modified_by": "Administrator", "module": "Integrations", "name": "Push Notification Settings", @@ -63,7 +63,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/integrations/doctype/query_parameters/query_parameters.json b/frappe/integrations/doctype/query_parameters/query_parameters.json index de31c28df7..b99c3032ab 100644 --- a/frappe/integrations/doctype/query_parameters/query_parameters.json +++ b/frappe/integrations/doctype/query_parameters/query_parameters.json @@ -26,12 +26,13 @@ ], "istable": 1, "links": [], - "modified": "2020-11-16 15:18:35.887149", + "modified": "2024-03-23 16:03:35.861622", "modified_by": "Administrator", "module": "Integrations", "name": "Query Parameters", "owner": "Administrator", "permissions": [], - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.json b/frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.json index e2256861cd..9f8015d279 100755 --- a/frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.json +++ b/frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.json @@ -130,7 +130,7 @@ "hide_toolbar": 1, "issingle": 1, "links": [], - "modified": "2023-01-11 15:38:20.333833", + "modified": "2024-03-23 16:03:37.575744", "modified_by": "Administrator", "module": "Integrations", "name": "S3 Backup Settings", @@ -148,7 +148,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/slack_webhook_url/slack_webhook_url.json b/frappe/integrations/doctype/slack_webhook_url/slack_webhook_url.json index 56a76b989b..93491f128b 100644 --- a/frappe/integrations/doctype/slack_webhook_url/slack_webhook_url.json +++ b/frappe/integrations/doctype/slack_webhook_url/slack_webhook_url.json @@ -35,7 +35,7 @@ } ], "links": [], - "modified": "2021-05-12 18:24:37.810235", + "modified": "2024-03-23 16:03:38.414990", "modified_by": "Administrator", "module": "Integrations", "name": "Slack Webhook URL", @@ -55,7 +55,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/integrations/doctype/social_login_key/social_login_key.json b/frappe/integrations/doctype/social_login_key/social_login_key.json index 12514c3fdd..f6661ec067 100644 --- a/frappe/integrations/doctype/social_login_key/social_login_key.json +++ b/frappe/integrations/doctype/social_login_key/social_login_key.json @@ -176,7 +176,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-10-14 12:22:23.601130", + "modified": "2024-03-23 16:03:38.963265", "modified_by": "Administrator", "module": "Integrations", "name": "Social Login Key", @@ -195,7 +195,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "provider_name", diff --git a/frappe/integrations/doctype/token_cache/token_cache.json b/frappe/integrations/doctype/token_cache/token_cache.json index 0e6601fd98..f45edd24ff 100644 --- a/frappe/integrations/doctype/token_cache/token_cache.json +++ b/frappe/integrations/doctype/token_cache/token_cache.json @@ -86,7 +86,7 @@ } ], "links": [], - "modified": "2023-01-01 21:01:24.405729", + "modified": "2024-03-23 16:03:58.980060", "modified_by": "Administrator", "module": "Integrations", "name": "Token Cache", @@ -105,7 +105,7 @@ "role": "All" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/integrations/doctype/webhook/webhook.json b/frappe/integrations/doctype/webhook/webhook.json index a4d924fc6f..5ce16026fa 100644 --- a/frappe/integrations/doctype/webhook/webhook.json +++ b/frappe/integrations/doctype/webhook/webhook.json @@ -226,7 +226,7 @@ "link_fieldname": "webhook" } ], - "modified": "2024-02-19 11:40:58.387233", + "modified": "2024-03-23 16:04:03.108172", "modified_by": "Administrator", "module": "Integrations", "name": "Webhook", @@ -246,7 +246,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/webhook_data/webhook_data.json b/frappe/integrations/doctype/webhook_data/webhook_data.json index 2ace6a9237..8bf5d905c9 100644 --- a/frappe/integrations/doctype/webhook_data/webhook_data.json +++ b/frappe/integrations/doctype/webhook_data/webhook_data.json @@ -31,13 +31,13 @@ ], "istable": 1, "links": [], - "modified": "2022-08-03 12:20:52.208987", + "modified": "2024-03-23 16:04:03.331064", "modified_by": "Administrator", "module": "Integrations", "name": "Webhook Data", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/integrations/doctype/webhook_header/webhook_header.json b/frappe/integrations/doctype/webhook_header/webhook_header.json index 6a7e8f9999..57333b842b 100644 --- a/frappe/integrations/doctype/webhook_header/webhook_header.json +++ b/frappe/integrations/doctype/webhook_header/webhook_header.json @@ -24,14 +24,14 @@ ], "istable": 1, "links": [], - "modified": "2023-12-11 12:20:51.949422", + "modified": "2024-03-23 16:04:03.419176", "modified_by": "Administrator", "module": "Integrations", "name": "Webhook Header", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/integrations/doctype/webhook_request_log/webhook_request_log.json b/frappe/integrations/doctype/webhook_request_log/webhook_request_log.json index b07197b12a..a932b624e0 100644 --- a/frappe/integrations/doctype/webhook_request_log/webhook_request_log.json +++ b/frappe/integrations/doctype/webhook_request_log/webhook_request_log.json @@ -79,7 +79,7 @@ "in_create": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2023-05-21 15:50:10.414002", + "modified": "2024-03-23 16:04:03.509383", "modified_by": "Administrator", "module": "Integrations", "name": "Webhook Request Log", @@ -99,7 +99,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/integrations/doctype/webhook_request_log/webhook_request_log.py b/frappe/integrations/doctype/webhook_request_log/webhook_request_log.py index 98d963df93..6f2df360cc 100644 --- a/frappe/integrations/doctype/webhook_request_log/webhook_request_log.py +++ b/frappe/integrations/doctype/webhook_request_log/webhook_request_log.py @@ -30,4 +30,4 @@ class WebhookRequestLog(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("Webhook Request Log") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) diff --git a/frappe/model/db_query.py b/frappe/model/db_query.py index ffe5dbcb70..54c3afd403 100644 --- a/frappe/model/db_query.py +++ b/frappe/model/db_query.py @@ -1076,20 +1076,20 @@ class DatabaseQuery: if self.doctype_meta.sort_field and "," in self.doctype_meta.sort_field: # multiple sort given in doctype definition # Example: - # `idx desc, modified desc` + # `idx desc, creation desc` # will covert to - # `tabItem`.`idx` desc, `tabItem`.`modified` desc + # `tabItem`.`idx` desc, `tabItem`.`creation` desc args.order_by = ", ".join( f"`tab{self.doctype}`.`{f_split[0].strip()}` {f_split[1].strip()}" for f in self.doctype_meta.sort_field.split(",") if (f_split := f.split(maxsplit=2)) ) else: - sort_field = self.doctype_meta.sort_field or "modified" + sort_field = self.doctype_meta.sort_field or "creation" sort_order = (self.doctype_meta.sort_field and self.doctype_meta.sort_order) or "desc" if self.order_by: args.order_by = ( - f"`tab{self.doctype}`.`{sort_field or 'modified'}` {sort_order or 'desc'}" + f"`tab{self.doctype}`.`{sort_field or 'creation'}` {sort_order or 'desc'}" ) def validate_order_by_and_group_by(self, parameters: str): @@ -1206,9 +1206,9 @@ def get_order_by(doctype, meta): if meta.sort_field and "," in meta.sort_field: # multiple sort given in doctype definition # Example: - # `idx desc, modified desc` + # `idx desc, creation desc` # will covert to - # `tabItem`.`idx` desc, `tabItem`.`modified` desc + # `tabItem`.`idx` desc, `tabItem`.`creation` desc order_by = ", ".join( f"`tab{doctype}`.`{f_split[0].strip()}` {f_split[1].strip()}" for f in meta.sort_field.split(",") @@ -1216,13 +1216,9 @@ def get_order_by(doctype, meta): ) else: - sort_field = meta.sort_field or "modified" + sort_field = meta.sort_field or "creation" sort_order = (meta.sort_field and meta.sort_order) or "desc" - order_by = f"`tab{doctype}`.`{sort_field or 'modified'}` {sort_order or 'desc'}" - - # draft docs always on top - if meta.is_submittable: - order_by = f"`tab{doctype}`.docstatus asc, {order_by}" + order_by = f"`tab{doctype}`.`{sort_field}` {sort_order}" return order_by diff --git a/frappe/patches.txt b/frappe/patches.txt index 1507a00fa5..5b99aa226c 100644 --- a/frappe/patches.txt +++ b/frappe/patches.txt @@ -235,3 +235,4 @@ frappe.patches.v15_0.sanitize_workspace_titles frappe.patches.v15_0.migrate_role_profile_to_table_multi_select frappe.patches.v15_0.migrate_session_data frappe.custom.doctype.property_setter.patches.remove_invalid_fetch_from_expressions +frappe.patches.v16_0.switch_default_sort_order diff --git a/frappe/patches/v11_0/migrate_report_settings_for_new_listview.py b/frappe/patches/v11_0/migrate_report_settings_for_new_listview.py index c867502fde..83c6ac0d55 100644 --- a/frappe/patches/v11_0/migrate_report_settings_for_new_listview.py +++ b/frappe/patches/v11_0/migrate_report_settings_for_new_listview.py @@ -25,7 +25,7 @@ def execute(): settings.pop("columns", None) # sort_by + order_by -> order_by - settings.order_by = (settings.sort_by or "modified") + " " + (settings.order_by or "desc") + settings.order_by = (settings.sort_by or "creation") + " " + (settings.order_by or "desc") # add_total_row -> add_totals_row settings.add_totals_row = settings.add_total_row diff --git a/frappe/patches/v16_0/switch_default_sort_order.py b/frappe/patches/v16_0/switch_default_sort_order.py new file mode 100644 index 0000000000..a374fbcec0 --- /dev/null +++ b/frappe/patches/v16_0/switch_default_sort_order.py @@ -0,0 +1,62 @@ +import json + +import click + +import frappe +from frappe.model.utils.user_settings import sync_user_settings +from frappe.patches.v14_0.drop_unused_indexes import drop_index_if_exists + + +def execute(): + if frappe.db.db_type == "postgres": + return + + db_tables = frappe.db.get_tables(cached=False) + + doctypes = frappe.get_all( + "DocType", + {"is_virtual": 0, "istable": 0}, + pluck="name", + ) + + for doctype in doctypes: + table = f"tab{doctype}" + if table not in db_tables: + continue + frappe.db.add_index(doctype, ["creation"], index_name="creation") + click.echo(f"✓ created creation index from {table}") + + # TODO: We might have to re-run this in future after all doctypes have migrated + if frappe.db.get_value("DocType", doctype, "sort_field") != "modified": + drop_index_if_exists(table, "modified") + + update_sort_order_in_user_settings() + + +def update_sort_order_in_user_settings(): + frappe.db.auto_commit_on_many_writes = True + sync_user_settings() + + user_settings = frappe.db.sql("select user, doctype, data from `__UserSettings`", as_dict=1) + + for setting in user_settings: + doctype = setting.get("doctype") + doctype_sort_order = frappe.db.get_value("DocType", doctype, "sort_field") or "creation" + data = setting.data + if not data or not doctype: + continue + + data = json.loads(data) + for view in ["List", "Gantt", "Kanban", "Calendar", "Image", "Inbox", "Report"]: + view_settings = data.get(view) + if ( + view_settings + and (current_sort_by := view_settings.get("sort_by")) + and current_sort_by == "modified" + and doctype_sort_order != "modified" + ): + view_settings["sort_by"] = "creation" + frappe.db.sql( + "update __UserSettings set data=%s where doctype=%s and user=%s", + (json.dumps(data), setting.doctype, setting.user), + ) diff --git a/frappe/printing/doctype/letter_head/letter_head.json b/frappe/printing/doctype/letter_head/letter_head.json index 4ffca134f2..ebbf3879f7 100644 --- a/frappe/printing/doctype/letter_head/letter_head.json +++ b/frappe/printing/doctype/letter_head/letter_head.json @@ -199,7 +199,7 @@ "idx": 1, "links": [], "max_attachments": 3, - "modified": "2023-12-21 16:19:37.525003", + "modified": "2024-03-23 16:03:28.922006", "modified_by": "Administrator", "module": "Printing", "name": "Letter Head", @@ -222,7 +222,7 @@ "role": "Desk User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/printing/doctype/network_printer_settings/network_printer_settings.json b/frappe/printing/doctype/network_printer_settings/network_printer_settings.json index 019d4ccd0c..87cdc1c2bf 100644 --- a/frappe/printing/doctype/network_printer_settings/network_printer_settings.json +++ b/frappe/printing/doctype/network_printer_settings/network_printer_settings.json @@ -41,7 +41,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 22:25:22.236295", + "modified": "2024-03-23 16:03:30.772015", "modified_by": "Administrator", "module": "Printing", "name": "Network Printer Settings", @@ -70,7 +70,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/printing/doctype/print_format/print_format.json b/frappe/printing/doctype/print_format/print_format.json index a58694f46d..a9a24d5d48 100644 --- a/frappe/printing/doctype/print_format/print_format.json +++ b/frappe/printing/doctype/print_format/print_format.json @@ -260,7 +260,7 @@ "icon": "fa fa-print", "idx": 1, "links": [], - "modified": "2023-12-12 19:59:37.133301", + "modified": "2024-03-23 16:03:34.964767", "modified_by": "Administrator", "module": "Printing", "name": "Print Format", @@ -283,7 +283,7 @@ "select": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/printing/doctype/print_format_field_template/print_format_field_template.json b/frappe/printing/doctype/print_format_field_template/print_format_field_template.json index 3b79aae7e8..8748f97755 100644 --- a/frappe/printing/doctype/print_format_field_template/print_format_field_template.json +++ b/frappe/printing/doctype/print_format_field_template/print_format_field_template.json @@ -75,7 +75,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2021-10-19 17:47:59.577949", + "modified": "2024-03-23 16:03:35.138827", "modified_by": "Administrator", "module": "Printing", "name": "Print Format Field Template", @@ -95,7 +95,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/printing/doctype/print_heading/print_heading.json b/frappe/printing/doctype/print_heading/print_heading.json index 9951b533cb..360aeaa071 100644 --- a/frappe/printing/doctype/print_heading/print_heading.json +++ b/frappe/printing/doctype/print_heading/print_heading.json @@ -1,143 +1,67 @@ { - "allow_copy": 0, - "allow_guest_to_view": 0, + "actions": [], "allow_import": 1, "allow_rename": 1, "autoname": "field:print_heading", - "beta": 0, "creation": "2013-01-10 16:34:24", - "custom": 0, - "docstatus": 0, "doctype": "DocType", "document_type": "Setup", - "editable_grid": 0, + "engine": "InnoDB", + "field_order": [ + "print_heading", + "description" + ], "fields": [ { - "allow_bulk_edit": 0, "allow_on_submit": 1, - "bold": 0, - "collapsible": 0, - "columns": 0, "fieldname": "print_heading", "fieldtype": "Data", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, "in_filter": 1, - "in_global_search": 0, "in_list_view": 1, - "in_standard_filter": 0, "label": "Print Heading", - "length": 0, - "no_copy": 0, "oldfieldname": "print_heading", "oldfieldtype": "Data", - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, "reqd": 1, - "search_index": 0, - "set_only_once": 0, - "unique": 0 + "unique": 1 }, { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, "fieldname": "description", "fieldtype": "Small Text", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, "in_list_view": 1, - "in_standard_filter": 0, "label": "Description", - "length": 0, - "no_copy": 0, "oldfieldname": "description", "oldfieldtype": "Small Text", - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "unique": 0, "width": "300px" } ], - "has_web_view": 0, - "hide_heading": 0, - "hide_toolbar": 0, "icon": "fa fa-font", "idx": 1, - "image_view": 0, - "in_create": 0, - "is_submittable": 0, - "issingle": 0, - "istable": 0, - "max_attachments": 0, - "modified": "2017-05-03 05:59:09.131569", + "links": [], + "modified": "2024-03-23 16:03:35.269553", "modified_by": "Administrator", "module": "Printing", "name": "Print Heading", "owner": "Administrator", "permissions": [ { - "amend": 0, - "apply_user_permissions": 0, - "cancel": 0, "create": 1, "delete": 1, "email": 1, - "export": 0, - "if_owner": 0, - "import": 0, - "permlevel": 0, "print": 1, "read": 1, "report": 1, "role": "System Manager", "share": 1, - "submit": 0, "write": 1 }, { - "amend": 0, - "apply_user_permissions": 0, - "cancel": 0, - "create": 0, - "delete": 0, - "email": 0, - "export": 0, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 0, "read": 1, - "report": 0, - "role": "All", - "share": 0, - "submit": 0, - "write": 0 + "role": "All" } ], "quick_entry": 1, - "read_only": 0, - "read_only_onload": 0, "search_fields": "print_heading", - "show_name_in_global_search": 0, + "sort_field": "creation", "sort_order": "DESC", - "track_changes": 0, - "track_seen": 0 -} + "states": [] +} \ No newline at end of file diff --git a/frappe/printing/doctype/print_settings/print_settings.json b/frappe/printing/doctype/print_settings/print_settings.json index a67440b54e..2a05fcbcd5 100644 --- a/frappe/printing/doctype/print_settings/print_settings.json +++ b/frappe/printing/doctype/print_settings/print_settings.json @@ -176,7 +176,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2023-05-30 14:55:25.740691", + "modified": "2024-03-23 16:03:35.392721", "modified_by": "Administrator", "module": "Printing", "name": "Print Settings", @@ -191,7 +191,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/printing/doctype/print_style/print_style.json b/frappe/printing/doctype/print_style/print_style.json index 1d3c9a6189..0cc34dd86e 100644 --- a/frappe/printing/doctype/print_style/print_style.json +++ b/frappe/printing/doctype/print_style/print_style.json @@ -49,7 +49,7 @@ ], "image_field": "preview", "links": [], - "modified": "2022-08-03 12:20:51.295775", + "modified": "2024-03-23 16:03:35.511731", "modified_by": "Administrator", "module": "Printing", "name": "Print Style", @@ -68,7 +68,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/public/js/frappe/list/base_list.js b/frappe/public/js/frappe/list/base_list.js index 228e9eb7bf..fde374ad16 100644 --- a/frappe/public/js/frappe/list/base_list.js +++ b/frappe/public/js/frappe/list/base_list.js @@ -54,7 +54,7 @@ frappe.views.BaseList = class BaseList { this.fields = []; this.filters = []; - this.sort_by = this.meta.sort_field || "modified"; + this.sort_by = this.meta.sort_field || "creation"; this.sort_order = this.meta.sort_order || "desc"; // Setup buttons diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index 6bdf44bd48..2d7b3e220d 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -85,7 +85,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { this.view = "List"; // initialize with saved order by - this.sort_by = this.view_user_settings.sort_by || this.sort_by || "modified"; + this.sort_by = this.view_user_settings.sort_by || this.sort_by || "creation"; this.sort_order = this.view_user_settings.sort_order || this.sort_order || "desc"; // build menu items diff --git a/frappe/public/js/frappe/ui/sort_selector.js b/frappe/public/js/frappe/ui/sort_selector.js index e62a3d8af0..8c87f21656 100644 --- a/frappe/public/js/frappe/ui/sort_selector.js +++ b/frappe/public/js/frappe/ui/sort_selector.js @@ -64,7 +64,7 @@ frappe.ui.SortSelector = class SortSelector { this.args = {}; if (order_by.includes("`.`")) { - // scrub table name (separated by dot), like `tabTime Log`.`modified` desc` + // scrub table name (separated by dot), like `tabTime Log`.`creation` desc` order_by = order_by.split(".")[1]; } @@ -109,7 +109,7 @@ frappe.ui.SortSelector = class SortSelector { this.args.sort_order = meta_sort_order; } else { // default - this.args.sort_by = "modified"; + this.args.sort_by = "creation"; this.args.sort_order = "desc"; } } @@ -183,7 +183,7 @@ frappe.ui.SortSelector = class SortSelector { }; } else { return { - meta_sort_field: meta.sort_field || "modified", + meta_sort_field: meta.sort_field || "creation", meta_sort_order: meta.sort_order ? meta.sort_order.toLowerCase() : "", }; } diff --git a/frappe/public/js/frappe/views/reports/report_view.js b/frappe/public/js/frappe/views/reports/report_view.js index 0619aefa29..9cb10aba87 100644 --- a/frappe/public/js/frappe/views/reports/report_view.js +++ b/frappe/public/js/frappe/views/reports/report_view.js @@ -35,7 +35,7 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView { this.add_totals_row = this.report_doc.json.add_totals_row; this.page_title = __(this.report_name); this.page_length = this.report_doc.json.page_length || 20; - this.order_by = this.report_doc.json.order_by || "modified desc"; + this.order_by = this.report_doc.json.order_by || "creation desc"; this.chart_args = this.report_doc.json.chart_args; }); } else { diff --git a/frappe/public/js/frappe/widgets/quick_list_widget.js b/frappe/public/js/frappe/widgets/quick_list_widget.js index 40bac6d967..b7b84f59bc 100644 --- a/frappe/public/js/frappe/widgets/quick_list_widget.js +++ b/frappe/public/js/frappe/widgets/quick_list_widget.js @@ -211,7 +211,7 @@ export default class QuickListWidget extends Widget { doctype: this.document_type, fields: fields, filters: quick_list_filter, - order_by: "modified desc", + order_by: "creation desc", start: 0, page_length: 4, }, diff --git a/frappe/social/doctype/energy_point_log/energy_point_log.json b/frappe/social/doctype/energy_point_log/energy_point_log.json index f71a1bda69..79a8101ac1 100644 --- a/frappe/social/doctype/energy_point_log/energy_point_log.json +++ b/frappe/social/doctype/energy_point_log/energy_point_log.json @@ -110,7 +110,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 22:33:08.420000", + "modified": "2024-03-23 16:03:25.006938", "modified_by": "Administrator", "module": "Social", "name": "Energy Point Log", @@ -127,7 +127,7 @@ "role": "Desk User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "user" diff --git a/frappe/social/doctype/energy_point_rule/energy_point_rule.json b/frappe/social/doctype/energy_point_rule/energy_point_rule.json index 3a30ba8857..cc2980f5ee 100644 --- a/frappe/social/doctype/energy_point_rule/energy_point_rule.json +++ b/frappe/social/doctype/energy_point_rule/energy_point_rule.json @@ -1,4 +1,5 @@ { + "actions": [], "autoname": "field:rule_name", "creation": "2018-06-20 10:08:36.275253", "doctype": "DocType", @@ -115,7 +116,8 @@ "label": "Apply Only Once" } ], - "modified": "2019-10-28 14:16:09.710167", + "links": [], + "modified": "2024-03-23 16:03:25.142267", "modified_by": "Administrator", "module": "Social", "name": "Energy Point Rule", @@ -134,7 +136,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/social/doctype/energy_point_settings/energy_point_settings.json b/frappe/social/doctype/energy_point_settings/energy_point_settings.json index d1f9aea3d0..772aa78a4d 100644 --- a/frappe/social/doctype/energy_point_settings/energy_point_settings.json +++ b/frappe/social/doctype/energy_point_settings/energy_point_settings.json @@ -46,7 +46,7 @@ "hide_toolbar": 1, "issingle": 1, "links": [], - "modified": "2021-11-16 23:24:01.366928", + "modified": "2024-03-23 16:03:25.273422", "modified_by": "Administrator", "module": "Social", "name": "Energy Point Settings", @@ -64,7 +64,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/social/doctype/review_level/review_level.json b/frappe/social/doctype/review_level/review_level.json index bfc1618f2d..7a2f9337aa 100644 --- a/frappe/social/doctype/review_level/review_level.json +++ b/frappe/social/doctype/review_level/review_level.json @@ -37,14 +37,14 @@ ], "istable": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:03:36.743533", "modified_by": "Administrator", "module": "Social", "name": "Review Level", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/tests/test_commands.py b/frappe/tests/test_commands.py index ea9fc661fe..dac8c24377 100644 --- a/frappe/tests/test_commands.py +++ b/frappe/tests/test_commands.py @@ -707,7 +707,7 @@ class TestBackups(BaseTestCommands): @run_only_if(db_type_is.MARIADB) def test_clear_log_table(self): d = frappe.get_doc(doctype="Error Log", title="Something").insert() - d.db_set("modified", "2010-01-01", update_modified=False) + d.db_set("creation", "2010-01-01", update_modified=False) frappe.db.commit() tables_before = frappe.db.get_tables(cached=False) diff --git a/frappe/tests/test_query.py b/frappe/tests/test_query.py index 514ac534f7..fe598b3873 100644 --- a/frappe/tests/test_query.py +++ b/frappe/tests/test_query.py @@ -371,7 +371,7 @@ class TestQuery(FrappeTestCase): "Test Tree DocType", fields=["name"], filters={"name": ("descendants of", "Parent 1")}, - order_by="modified desc", + order_by="creation desc", ).run(as_list=1) # Format decendants result @@ -382,7 +382,7 @@ class TestQuery(FrappeTestCase): "Test Tree DocType", fields=["name"], filters={"name": ("ancestors of", "Child 2")}, - order_by="modified desc", + order_by="creation desc", ).run(as_list=1) # Format ancestors result @@ -393,7 +393,7 @@ class TestQuery(FrappeTestCase): "Test Tree DocType", fields=["name"], filters={"name": ("not descendants of", "Parent 1")}, - order_by="modified desc", + order_by="creation desc", ).run(as_dict=1) self.assertListEqual( @@ -409,7 +409,7 @@ class TestQuery(FrappeTestCase): "Test Tree DocType", fields=["name"], filters={"name": ("not ancestors of", "Child 2")}, - order_by="modified desc", + order_by="creation desc", ).run(as_dict=1) self.assertListEqual( diff --git a/frappe/tests/test_scheduler.py b/frappe/tests/test_scheduler.py index a697846b33..0ff128c454 100644 --- a/frappe/tests/test_scheduler.py +++ b/frappe/tests/test_scheduler.py @@ -8,7 +8,7 @@ from frappe.core.doctype.scheduled_job_type.scheduled_job_type import ScheduledJ from frappe.utils import add_days, get_datetime from frappe.utils.doctor import purge_pending_jobs from frappe.utils.scheduler import ( - _get_last_modified_timestamp, + _get_last_creation_timestamp, enqueue_events, is_dormant, schedule_jobs_based_on_activity, @@ -75,20 +75,20 @@ class TestScheduler(TestCase): job.execute() job_log = frappe.get_doc("Scheduled Job Log", dict(scheduled_job_type=job.name)) job_log.db_set( - "modified", add_days(_get_last_modified_timestamp("Activity Log"), 5), update_modified=False + "creation", add_days(_get_last_creation_timestamp("Activity Log"), 5), update_modified=False ) # inactive site with recent job, don't run self.assertFalse( schedule_jobs_based_on_activity( - check_time=add_days(_get_last_modified_timestamp("Activity Log"), 5) + check_time=add_days(_get_last_creation_timestamp("Activity Log"), 5) ) ) # one more day has passed self.assertTrue( schedule_jobs_based_on_activity( - check_time=add_days(_get_last_modified_timestamp("Activity Log"), 6) + check_time=add_days(_get_last_creation_timestamp("Activity Log"), 6) ) ) diff --git a/frappe/tests/test_utils.py b/frappe/tests/test_utils.py index 824eaeac1c..d4f0acafcc 100644 --- a/frappe/tests/test_utils.py +++ b/frappe/tests/test_utils.py @@ -1300,6 +1300,8 @@ class TestChangeLog(FrappeTestCase): from semantic_version import Version version, owner = check_release_on_github("frappe", "frappe") + if version is None: + return self.assertIsInstance(version, Version) self.assertEqual(owner, "frappe") diff --git a/frappe/utils/diff.py b/frappe/utils/diff.py index dab85842a2..793de389e8 100644 --- a/frappe/utils/diff.py +++ b/frappe/utils/diff.py @@ -60,6 +60,6 @@ def version_query(doctype, txt, searchfield, start, page_len, filters): filters=version_filters, limit_start=start, limit_page_length=page_len, - order_by="modified desc", + order_by="creation desc", ) return [(d.name, pretty_date(d.modified), d.modified, d.owner) for d in results] diff --git a/frappe/utils/scheduler.py b/frappe/utils/scheduler.py index 03368f956f..d9e1259668 100644 --- a/frappe/utils/scheduler.py +++ b/frappe/utils/scheduler.py @@ -155,7 +155,7 @@ def schedule_jobs_based_on_activity(check_time=None): Also return True for inactive sites once every 24 hours based on `Scheduled Job Log`.""" if is_dormant(check_time=check_time): # ensure last job is one day old - last_job_timestamp = _get_last_modified_timestamp("Scheduled Job Log") + last_job_timestamp = _get_last_creation_timestamp("Scheduled Job Log") if not last_job_timestamp: return True else: @@ -171,7 +171,7 @@ def schedule_jobs_based_on_activity(check_time=None): def is_dormant(check_time=None): - last_activity_log_timestamp = _get_last_modified_timestamp("Activity Log") + last_activity_log_timestamp = _get_last_creation_timestamp("Activity Log") since = (frappe.get_system_settings("dormant_days") or 4) * 86400 if not last_activity_log_timestamp: return True @@ -180,8 +180,8 @@ def is_dormant(check_time=None): return False -def _get_last_modified_timestamp(doctype): - timestamp = frappe.db.get_value(doctype, filters={}, fieldname="modified", order_by="modified desc") +def _get_last_creation_timestamp(doctype): + timestamp = frappe.db.get_value(doctype, filters={}, fieldname="creation", order_by="creation desc") if timestamp: return get_datetime(timestamp) diff --git a/frappe/website/doctype/about_us_settings/about_us_settings.json b/frappe/website/doctype/about_us_settings/about_us_settings.json index 1e75f9d472..38f29aeba8 100644 --- a/frappe/website/doctype/about_us_settings/about_us_settings.json +++ b/frappe/website/doctype/about_us_settings/about_us_settings.json @@ -82,7 +82,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2020-10-12 13:26:20.277859", + "modified": "2024-03-23 16:01:26.370657", "modified_by": "Administrator", "module": "Website", "name": "About Us Settings", @@ -98,7 +98,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/about_us_team_member/about_us_team_member.json b/frappe/website/doctype/about_us_team_member/about_us_team_member.json index 22a9d41ef9..3fce28939c 100644 --- a/frappe/website/doctype/about_us_team_member/about_us_team_member.json +++ b/frappe/website/doctype/about_us_team_member/about_us_team_member.json @@ -37,13 +37,13 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2022-08-03 12:20:50.254472", + "modified": "2024-03-23 16:01:26.563628", "modified_by": "Administrator", "module": "Website", "name": "About Us Team Member", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/blog_category/blog_category.json b/frappe/website/doctype/blog_category/blog_category.json index ad45d40efa..eb6d863e13 100644 --- a/frappe/website/doctype/blog_category/blog_category.json +++ b/frappe/website/doctype/blog_category/blog_category.json @@ -67,7 +67,7 @@ } ], "make_attachments_public": 1, - "modified": "2022-10-18 15:43:39.789982", + "modified": "2024-03-23 16:01:28.967396", "modified_by": "Administrator", "module": "Website", "name": "Blog Category", @@ -92,9 +92,9 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "title", "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/website/doctype/blog_post/blog_post.json b/frappe/website/doctype/blog_post/blog_post.json index 367397a441..9de699e522 100644 --- a/frappe/website/doctype/blog_post/blog_post.json +++ b/frappe/website/doctype/blog_post/blog_post.json @@ -2,7 +2,7 @@ "actions": [], "allow_guest_to_view": 1, "allow_import": 1, - "creation": "2013-03-28 10:35:30", + "creation": "2023-08-03 19:53:03.782490", "doctype": "DocType", "document_type": "Setup", "engine": "InnoDB", @@ -216,7 +216,7 @@ "is_published_field": "published", "links": [], "make_attachments_public": 1, - "modified": "2023-02-17 11:31:32.223524", + "modified": "2024-03-23 16:01:29.148911", "modified_by": "Administrator", "module": "Website", "name": "Blog Post", @@ -245,9 +245,9 @@ } ], "route": "blog", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", "states": [], "title_field": "title", "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/website/doctype/blog_settings/blog_settings.json b/frappe/website/doctype/blog_settings/blog_settings.json index 95236c8102..be0dd749ed 100644 --- a/frappe/website/doctype/blog_settings/blog_settings.json +++ b/frappe/website/doctype/blog_settings/blog_settings.json @@ -131,7 +131,7 @@ "idx": 1, "issingle": 1, "links": [], - "modified": "2024-01-30 14:13:12.477755", + "modified": "2024-03-23 16:01:29.318488", "modified_by": "Administrator", "module": "Website", "name": "Blog Settings", @@ -154,7 +154,7 @@ "share": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/blogger/blogger.json b/frappe/website/doctype/blogger/blogger.json index b6f941bfb9..cbc1dfe467 100644 --- a/frappe/website/doctype/blogger/blogger.json +++ b/frappe/website/doctype/blogger/blogger.json @@ -65,7 +65,7 @@ ], "make_attachments_public": 1, "max_attachments": 1, - "modified": "2022-10-18 15:44:31.473178", + "modified": "2024-03-23 16:01:29.432477", "modified_by": "Administrator", "module": "Website", "name": "Blogger", @@ -94,9 +94,9 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "full_name", "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/website/doctype/color/color.json b/frappe/website/doctype/color/color.json index f42898da12..58e5386fe6 100644 --- a/frappe/website/doctype/color/color.json +++ b/frappe/website/doctype/color/color.json @@ -18,7 +18,7 @@ } ], "links": [], - "modified": "2020-04-19 02:25:47.417772", + "modified": "2024-03-23 16:01:29.982660", "modified_by": "Administrator", "module": "Website", "name": "Color", @@ -38,7 +38,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/company_history/company_history.json b/frappe/website/doctype/company_history/company_history.json index e87be6e7d4..5d5decddf6 100644 --- a/frappe/website/doctype/company_history/company_history.json +++ b/frappe/website/doctype/company_history/company_history.json @@ -27,13 +27,13 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2022-08-03 12:20:50.361022", + "modified": "2024-03-23 16:01:30.539017", "modified_by": "Administrator", "module": "Website", "name": "Company History", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/contact_us_settings/contact_us_settings.json b/frappe/website/doctype/contact_us_settings/contact_us_settings.json index 5736e6d799..09c4f9488b 100644 --- a/frappe/website/doctype/contact_us_settings/contact_us_settings.json +++ b/frappe/website/doctype/contact_us_settings/contact_us_settings.json @@ -5,6 +5,7 @@ "doctype": "DocType", "engine": "InnoDB", "field_order": [ + "disable_contact_us", "introduction_section", "forward_to_email", "heading", @@ -55,6 +56,7 @@ "label": "Query Options" }, { + "collapsible": 1, "fieldname": "address", "fieldtype": "Section Break", "label": "Address" @@ -115,13 +117,19 @@ "fieldname": "skype", "fieldtype": "Data", "label": "Skype" + }, + { + "default": "0", + "fieldname": "disable_contact_us", + "fieldtype": "Check", + "label": "Disable Contact Us Page" } ], "icon": "fa fa-cog", "idx": 1, "issingle": 1, "links": [], - "modified": "2021-03-02 17:42:32.947404", + "modified": "2024-03-23 16:01:31.401053", "modified_by": "Administrator", "module": "Website", "name": "Contact Us Settings", @@ -137,7 +145,9 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", - "track_changes": 1 + "states": [], + "track_changes": 1, + "track_seen": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/discussion_reply/discussion_reply.json b/frappe/website/doctype/discussion_reply/discussion_reply.json index 4d96bcb813..dbcff1cde6 100644 --- a/frappe/website/doctype/discussion_reply/discussion_reply.json +++ b/frappe/website/doctype/discussion_reply/discussion_reply.json @@ -27,7 +27,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2021-09-28 12:09:10.875929", + "modified": "2024-03-23 16:02:18.000815", "modified_by": "Administrator", "module": "Website", "name": "Discussion Reply", @@ -47,7 +47,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/discussion_topic/discussion_topic.json b/frappe/website/doctype/discussion_topic/discussion_topic.json index fd52a5bd21..710b2a1e19 100644 --- a/frappe/website/doctype/discussion_topic/discussion_topic.json +++ b/frappe/website/doctype/discussion_topic/discussion_topic.json @@ -35,7 +35,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2021-09-28 12:11:50.016352", + "modified": "2024-03-23 16:02:18.102531", "modified_by": "Administrator", "module": "Website", "name": "Discussion Topic", @@ -56,8 +56,9 @@ } ], "search_fields": "title", - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "title_field": "title", "track_changes": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/help_article/help_article.json b/frappe/website/doctype/help_article/help_article.json index ffced5cc3d..d62380abc9 100644 --- a/frappe/website/doctype/help_article/help_article.json +++ b/frappe/website/doctype/help_article/help_article.json @@ -113,7 +113,7 @@ "index_web_pages_for_search": 1, "is_published_field": "published", "links": [], - "modified": "2024-01-02 11:34:43.594309", + "modified": "2024-03-23 16:03:27.427297", "modified_by": "Administrator", "module": "Website", "name": "Help Article", @@ -138,7 +138,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "title", diff --git a/frappe/website/doctype/help_category/help_category.json b/frappe/website/doctype/help_category/help_category.json index 0dc37c2b0b..fb1debfe1a 100644 --- a/frappe/website/doctype/help_category/help_category.json +++ b/frappe/website/doctype/help_category/help_category.json @@ -46,7 +46,7 @@ ], "icon": "icon-list", "links": [], - "modified": "2022-08-03 12:20:50.025294", + "modified": "2024-03-23 16:03:27.650255", "modified_by": "Administrator", "module": "Website", "name": "Help Category", @@ -65,8 +65,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/website/doctype/marketing_campaign/marketing_campaign.json b/frappe/website/doctype/marketing_campaign/marketing_campaign.json index 4d179b826f..ad6cd8acbc 100644 --- a/frappe/website/doctype/marketing_campaign/marketing_campaign.json +++ b/frappe/website/doctype/marketing_campaign/marketing_campaign.json @@ -21,7 +21,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-28 22:26:04.298759", + "modified": "2024-03-23 16:03:29.592624", "modified_by": "Administrator", "module": "Website", "name": "Marketing Campaign", @@ -58,7 +58,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/personal_data_deletion_request/personal_data_deletion_request.json b/frappe/website/doctype/personal_data_deletion_request/personal_data_deletion_request.json index b95fd2d2e6..c6acceb763 100644 --- a/frappe/website/doctype/personal_data_deletion_request/personal_data_deletion_request.json +++ b/frappe/website/doctype/personal_data_deletion_request/personal_data_deletion_request.json @@ -45,7 +45,7 @@ } ], "links": [], - "modified": "2021-12-16 10:39:27.058371", + "modified": "2024-03-23 16:03:34.247405", "modified_by": "Administrator", "module": "Website", "name": "Personal Data Deletion Request", @@ -64,7 +64,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/personal_data_deletion_step/personal_data_deletion_step.json b/frappe/website/doctype/personal_data_deletion_step/personal_data_deletion_step.json index 5d38ea6222..0bd201d041 100644 --- a/frappe/website/doctype/personal_data_deletion_step/personal_data_deletion_step.json +++ b/frappe/website/doctype/personal_data_deletion_step/personal_data_deletion_step.json @@ -54,13 +54,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-04-23 13:48:59.658681", + "modified": "2024-03-23 16:03:34.371453", "modified_by": "Administrator", "module": "Website", "name": "Personal Data Deletion Step", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/personal_data_download_request/personal_data_download_request.json b/frappe/website/doctype/personal_data_download_request/personal_data_download_request.json index 6a51a79b8c..b48eb78445 100644 --- a/frappe/website/doctype/personal_data_download_request/personal_data_download_request.json +++ b/frappe/website/doctype/personal_data_download_request/personal_data_download_request.json @@ -1,4 +1,5 @@ { + "actions": [], "creation": "2019-01-24 16:34:24.093128", "doctype": "DocType", "editable_grid": 1, @@ -35,7 +36,8 @@ "read_only": 1 } ], - "modified": "2019-05-14 13:02:58.175687", + "links": [], + "modified": "2024-03-23 16:03:34.487641", "modified_by": "Administrator", "module": "Website", "name": "Personal Data Download Request", @@ -59,7 +61,8 @@ "role": "All" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/portal_menu_item/portal_menu_item.json b/frappe/website/doctype/portal_menu_item/portal_menu_item.json index a692368313..e64403f0fd 100644 --- a/frappe/website/doctype/portal_menu_item/portal_menu_item.json +++ b/frappe/website/doctype/portal_menu_item/portal_menu_item.json @@ -62,14 +62,14 @@ ], "istable": 1, "links": [], - "modified": "2022-08-03 12:20:49.792747", + "modified": "2024-03-23 16:03:34.594033", "modified_by": "Administrator", "module": "Website", "name": "Portal Menu Item", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/portal_settings/portal_settings.json b/frappe/website/doctype/portal_settings/portal_settings.json index 48321d0512..d36752e2f1 100644 --- a/frappe/website/doctype/portal_settings/portal_settings.json +++ b/frappe/website/doctype/portal_settings/portal_settings.json @@ -56,7 +56,7 @@ ], "issingle": 1, "links": [], - "modified": "2020-08-06 15:43:36.387050", + "modified": "2024-03-23 16:03:34.722063", "modified_by": "Administrator", "module": "Website", "name": "Portal Settings", @@ -73,7 +73,8 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/social_link_settings/social_link_settings.json b/frappe/website/doctype/social_link_settings/social_link_settings.json index 459c98eed6..c60e556abd 100644 --- a/frappe/website/doctype/social_link_settings/social_link_settings.json +++ b/frappe/website/doctype/social_link_settings/social_link_settings.json @@ -32,12 +32,13 @@ ], "istable": 1, "links": [], - "modified": "2020-05-01 23:55:04.731518", + "modified": "2024-03-23 16:03:38.866493", "modified_by": "Administrator", "module": "Website", "name": "Social Link Settings", "owner": "Administrator", "permissions": [], - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/top_bar_item/top_bar_item.json b/frappe/website/doctype/top_bar_item/top_bar_item.json index 899b881b8a..4c02ad87d0 100644 --- a/frappe/website/doctype/top_bar_item/top_bar_item.json +++ b/frappe/website/doctype/top_bar_item/top_bar_item.json @@ -61,13 +61,13 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-01-08 12:05:25.782635", + "modified": "2024-03-23 16:03:59.197387", "modified_by": "Administrator", "module": "Website", "name": "Top Bar Item", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/web_form/web_form.json b/frappe/website/doctype/web_form/web_form.json index 0e70620542..c4eeca4cac 100644 --- a/frappe/website/doctype/web_form/web_form.json +++ b/frappe/website/doctype/web_form/web_form.json @@ -393,7 +393,7 @@ "icon": "icon-edit", "is_published_field": "published", "links": [], - "modified": "2023-10-10 12:51:18.341792", + "modified": "2024-03-23 16:04:01.886581", "modified_by": "Administrator", "module": "Website", "name": "Web Form", @@ -409,7 +409,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "title", diff --git a/frappe/website/doctype/web_form_field/web_form_field.json b/frappe/website/doctype/web_form_field/web_form_field.json index 860029cce2..665e9e4a9b 100644 --- a/frappe/website/doctype/web_form_field/web_form_field.json +++ b/frappe/website/doctype/web_form_field/web_form_field.json @@ -156,13 +156,13 @@ ], "istable": 1, "links": [], - "modified": "2024-01-08 13:21:06.272248", + "modified": "2024-03-23 16:04:02.173108", "modified_by": "Administrator", "module": "Website", "name": "Web Form Field", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/web_form_list_column/web_form_list_column.json b/frappe/website/doctype/web_form_list_column/web_form_list_column.json index 8be724f426..7bdc472de4 100644 --- a/frappe/website/doctype/web_form_list_column/web_form_list_column.json +++ b/frappe/website/doctype/web_form_list_column/web_form_list_column.json @@ -35,14 +35,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2022-08-17 19:09:01.417841", + "modified": "2024-03-23 16:04:02.310851", "modified_by": "Administrator", "module": "Website", "name": "Web Form List Column", "naming_rule": "Autoincrement", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/web_page/web_page.json b/frappe/website/doctype/web_page/web_page.json index 2976285b1a..b9c65acd87 100644 --- a/frappe/website/doctype/web_page/web_page.json +++ b/frappe/website/doctype/web_page/web_page.json @@ -338,7 +338,7 @@ "index_web_pages_for_search": 1, "is_published_field": "published", "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:04:02.407199", "modified_by": "Administrator", "module": "Website", "name": "Web Page", @@ -356,7 +356,7 @@ ], "search_fields": "title", "show_name_in_global_search": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "title", diff --git a/frappe/website/doctype/web_page_block/web_page_block.json b/frappe/website/doctype/web_page_block/web_page_block.json index e5f00fffc2..58d626a664 100644 --- a/frappe/website/doctype/web_page_block/web_page_block.json +++ b/frappe/website/doctype/web_page_block/web_page_block.json @@ -114,14 +114,14 @@ ], "istable": 1, "links": [], - "modified": "2022-06-21 20:00:17.025272", + "modified": "2024-03-23 16:04:02.614392", "modified_by": "Administrator", "module": "Website", "name": "Web Page Block", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/web_page_view/web_page_view.json b/frappe/website/doctype/web_page_view/web_page_view.json index 57718c4cef..dd66d97951 100644 --- a/frappe/website/doctype/web_page_view/web_page_view.json +++ b/frappe/website/doctype/web_page_view/web_page_view.json @@ -16,7 +16,8 @@ "source", "campaign", "medium", - "visitor_id" + "visitor_id", + "content" ], "fields": [ { @@ -92,7 +93,7 @@ ], "in_create": 1, "links": [], - "modified": "2023-03-20 23:38:27.067285", + "modified": "2024-03-23 16:04:02.743377", "modified_by": "Administrator", "module": "Website", "name": "Web Page View", @@ -113,8 +114,8 @@ ], "quick_entry": 1, "read_only": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "path" -} +} \ No newline at end of file diff --git a/frappe/website/doctype/web_page_view/web_page_view.py b/frappe/website/doctype/web_page_view/web_page_view.py index 3ee634fc98..7e128ef558 100644 --- a/frappe/website/doctype/web_page_view/web_page_view.py +++ b/frappe/website/doctype/web_page_view/web_page_view.py @@ -37,7 +37,7 @@ class WebPageView(Document): from frappe.query_builder.functions import Now table = frappe.qb.DocType("Web Page View") - frappe.db.delete(table, filters=(table.modified < (Now() - Interval(days=days)))) + frappe.db.delete(table, filters=(table.creation < (Now() - Interval(days=days)))) @frappe.whitelist(allow_guest=True) diff --git a/frappe/website/doctype/web_template/web_template.json b/frappe/website/doctype/web_template/web_template.json index 719ca29e16..8151185611 100644 --- a/frappe/website/doctype/web_template/web_template.json +++ b/frappe/website/doctype/web_template/web_template.json @@ -54,7 +54,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-12-12 20:01:21.524022", + "modified": "2024-03-23 16:04:02.852688", "modified_by": "Administrator", "module": "Website", "name": "Web Template", @@ -74,7 +74,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/web_template_field/web_template_field.json b/frappe/website/doctype/web_template_field/web_template_field.json index ae0afd13f2..e4425ad47c 100644 --- a/frappe/website/doctype/web_template_field/web_template_field.json +++ b/frappe/website/doctype/web_template_field/web_template_field.json @@ -54,14 +54,15 @@ ], "istable": 1, "links": [], - "modified": "2020-10-26 17:38:40.798713", + "modified": "2024-03-23 16:04:02.982364", "modified_by": "Administrator", "module": "Website", "name": "Web Template Field", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/website/doctype/website_meta_tag/website_meta_tag.json b/frappe/website/doctype/website_meta_tag/website_meta_tag.json index 14b834051a..c5194580da 100644 --- a/frappe/website/doctype/website_meta_tag/website_meta_tag.json +++ b/frappe/website/doctype/website_meta_tag/website_meta_tag.json @@ -26,14 +26,14 @@ ], "istable": 1, "links": [], - "modified": "2022-08-03 12:20:49.259886", + "modified": "2024-03-23 16:04:03.618341", "modified_by": "Administrator", "module": "Website", "name": "Website Meta Tag", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/website_route_meta/website_route_meta.json b/frappe/website/doctype/website_route_meta/website_route_meta.json index 6e1672c379..4f1dc01fc7 100644 --- a/frappe/website/doctype/website_route_meta/website_route_meta.json +++ b/frappe/website/doctype/website_route_meta/website_route_meta.json @@ -1,4 +1,5 @@ { + "actions": [], "allow_rename": 1, "autoname": "Prompt", "creation": "2019-02-16 17:37:27.918909", @@ -17,7 +18,8 @@ "reqd": 1 } ], - "modified": "2019-11-28 17:26:49.068372", + "links": [], + "modified": "2024-03-23 16:04:03.714438", "modified_by": "Administrator", "module": "Website", "name": "Website Route Meta", @@ -37,7 +39,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/website/doctype/website_route_redirect/website_route_redirect.json b/frappe/website/doctype/website_route_redirect/website_route_redirect.json index d105f11053..da093315c9 100644 --- a/frappe/website/doctype/website_route_redirect/website_route_redirect.json +++ b/frappe/website/doctype/website_route_redirect/website_route_redirect.json @@ -33,14 +33,14 @@ ], "istable": 1, "links": [], - "modified": "2023-12-22 12:21:28.436139", + "modified": "2024-03-23 16:04:03.818023", "modified_by": "Administrator", "module": "Website", "name": "Website Route Redirect", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/website_script/website_script.json b/frappe/website/doctype/website_script/website_script.json index 40f8430016..a61b6f6581 100644 --- a/frappe/website/doctype/website_script/website_script.json +++ b/frappe/website/doctype/website_script/website_script.json @@ -20,7 +20,7 @@ "idx": 1, "issingle": 1, "links": [], - "modified": "2022-08-03 12:20:49.917059", + "modified": "2024-03-23 16:04:03.907275", "modified_by": "Administrator", "module": "Website", "name": "Website Script", @@ -36,7 +36,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "ASC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/website_settings/website_settings.json b/frappe/website/doctype/website_settings/website_settings.json index fddd929380..e6d550c4e4 100644 --- a/frappe/website/doctype/website_settings/website_settings.json +++ b/frappe/website/doctype/website_settings/website_settings.json @@ -483,7 +483,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2024-01-08 11:50:34.750809", + "modified": "2024-03-23 16:04:03.999928", "modified_by": "Administrator", "module": "Website", "name": "Website Settings", @@ -504,7 +504,7 @@ "role": "All" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/website_sidebar/website_sidebar.json b/frappe/website/doctype/website_sidebar/website_sidebar.json index 5232244404..b4c1999963 100644 --- a/frappe/website/doctype/website_sidebar/website_sidebar.json +++ b/frappe/website/doctype/website_sidebar/website_sidebar.json @@ -29,7 +29,7 @@ } ], "links": [], - "modified": "2022-08-03 12:20:49.508223", + "modified": "2024-03-23 16:04:04.210555", "modified_by": "Administrator", "module": "Website", "name": "Website Sidebar", @@ -49,7 +49,7 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/website_sidebar_item/website_sidebar_item.json b/frappe/website/doctype/website_sidebar_item/website_sidebar_item.json index 055abf74ab..477e914347 100644 --- a/frappe/website/doctype/website_sidebar_item/website_sidebar_item.json +++ b/frappe/website/doctype/website_sidebar_item/website_sidebar_item.json @@ -32,14 +32,14 @@ ], "istable": 1, "links": [], - "modified": "2022-08-03 12:20:49.377257", + "modified": "2024-03-23 16:04:04.319910", "modified_by": "Administrator", "module": "Website", "name": "Website Sidebar Item", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/website_slideshow/website_slideshow.json b/frappe/website/doctype/website_slideshow/website_slideshow.json index de4c6ee5c2..058a2fcee7 100644 --- a/frappe/website/doctype/website_slideshow/website_slideshow.json +++ b/frappe/website/doctype/website_slideshow/website_slideshow.json @@ -46,7 +46,7 @@ "idx": 1, "links": [], "max_attachments": 10, - "modified": "2022-08-03 12:20:49.654403", + "modified": "2024-03-23 16:04:04.409255", "modified_by": "Administrator", "module": "Website", "name": "Website Slideshow", @@ -64,7 +64,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/website_slideshow_item/website_slideshow_item.json b/frappe/website/doctype/website_slideshow_item/website_slideshow_item.json index 144d54bd98..76acc28473 100644 --- a/frappe/website/doctype/website_slideshow_item/website_slideshow_item.json +++ b/frappe/website/doctype/website_slideshow_item/website_slideshow_item.json @@ -45,12 +45,13 @@ "istable": 1, "links": [], "max_attachments": 10, - "modified": "2020-09-10 14:44:54.537285", + "modified": "2024-03-23 16:04:04.516513", "modified_by": "Administrator", "module": "Website", "name": "Website Slideshow Item", "owner": "Administrator", "permissions": [], - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/website/doctype/website_theme/website_theme.json b/frappe/website/doctype/website_theme/website_theme.json index 0faa621f68..514d1efb3c 100644 --- a/frappe/website/doctype/website_theme/website_theme.json +++ b/frappe/website/doctype/website_theme/website_theme.json @@ -181,7 +181,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2022-10-25 22:15:53.601571", + "modified": "2024-03-23 16:04:04.610086", "modified_by": "Administrator", "module": "Website", "name": "Website Theme", @@ -205,7 +205,7 @@ "write": 1 } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/website/doctype/website_theme_ignore_app/website_theme_ignore_app.json b/frappe/website/doctype/website_theme_ignore_app/website_theme_ignore_app.json index f3d5f47690..1e73ac8763 100644 --- a/frappe/website/doctype/website_theme_ignore_app/website_theme_ignore_app.json +++ b/frappe/website/doctype/website_theme_ignore_app/website_theme_ignore_app.json @@ -19,14 +19,15 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2020-09-22 08:08:17.521361", + "modified": "2024-03-23 16:04:04.760483", "modified_by": "Administrator", "module": "Website", "name": "Website Theme Ignore App", "owner": "Administrator", "permissions": [], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/frappe/workflow/doctype/workflow/workflow.json b/frappe/workflow/doctype/workflow/workflow.json index 435a2f56ad..58761f1fe5 100644 --- a/frappe/workflow/doctype/workflow/workflow.json +++ b/frappe/workflow/doctype/workflow/workflow.json @@ -104,7 +104,7 @@ "icon": "fa fa-random", "idx": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:04:04.849665", "modified_by": "Administrator", "module": "Workflow", "name": "Workflow", @@ -122,7 +122,7 @@ } ], "show_name_in_global_search": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/workflow/doctype/workflow_action/workflow_action.json b/frappe/workflow/doctype/workflow_action/workflow_action.json index ace2290cef..47ffd76d7c 100644 --- a/frappe/workflow/doctype/workflow_action/workflow_action.json +++ b/frappe/workflow/doctype/workflow_action/workflow_action.json @@ -1,6 +1,6 @@ { "actions": [], - "creation": "2018-05-17 18:29:03.923384", + "creation": "2024-02-12 12:38:32.408271", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", @@ -79,7 +79,7 @@ } ], "links": [], - "modified": "2023-08-28 22:32:58.947849", + "modified": "2024-03-23 16:04:04.989036", "modified_by": "Administrator", "module": "Workflow", "name": "Workflow Action", @@ -91,7 +91,7 @@ "role": "Desk User" } ], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "reference_name", diff --git a/frappe/workflow/doctype/workflow_action_master/workflow_action_master.json b/frappe/workflow/doctype/workflow_action_master/workflow_action_master.json index 74b22716e6..797d883102 100644 --- a/frappe/workflow/doctype/workflow_action_master/workflow_action_master.json +++ b/frappe/workflow/doctype/workflow_action_master/workflow_action_master.json @@ -1,7 +1,7 @@ { "actions": [], - "autoname": "field:workflow_action_name", "allow_rename": 1, + "autoname": "field:workflow_action_name", "creation": "2012-12-28 10:49:56", "description": "Workflow Action Master", "doctype": "DocType", @@ -22,7 +22,7 @@ "icon": "fa fa-flag", "idx": 1, "links": [], - "modified": "2023-04-14 12:20:52.449982", + "modified": "2024-03-23 16:04:05.108415", "modified_by": "Administrator", "module": "Workflow", "name": "Workflow Action Master", @@ -40,8 +40,8 @@ } ], "quick_entry": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/frappe/workflow/doctype/workflow_action_permitted_role/workflow_action_permitted_role.json b/frappe/workflow/doctype/workflow_action_permitted_role/workflow_action_permitted_role.json index 19b2dcba19..27036a1977 100644 --- a/frappe/workflow/doctype/workflow_action_permitted_role/workflow_action_permitted_role.json +++ b/frappe/workflow/doctype/workflow_action_permitted_role/workflow_action_permitted_role.json @@ -20,14 +20,14 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2022-02-21 20:28:05.662187", + "modified": "2024-03-23 16:04:05.199852", "modified_by": "Administrator", "module": "Workflow", "name": "Workflow Action Permitted Role", "naming_rule": "Random", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [] } \ No newline at end of file diff --git a/frappe/workflow/doctype/workflow_document_state/workflow_document_state.json b/frappe/workflow/doctype/workflow_document_state/workflow_document_state.json index 4d19080497..f67ec8a1fd 100644 --- a/frappe/workflow/doctype/workflow_document_state/workflow_document_state.json +++ b/frappe/workflow/doctype/workflow_document_state/workflow_document_state.json @@ -110,13 +110,13 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2023-11-13 18:27:08.633239", + "modified": "2024-03-23 16:04:05.286225", "modified_by": "Administrator", "module": "Workflow", "name": "Workflow Document State", "owner": "Administrator", "permissions": [], - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1 diff --git a/frappe/workflow/doctype/workflow_state/workflow_state.json b/frappe/workflow/doctype/workflow_state/workflow_state.json index 66e3ee27da..648f111ff8 100644 --- a/frappe/workflow/doctype/workflow_state/workflow_state.json +++ b/frappe/workflow/doctype/workflow_state/workflow_state.json @@ -40,7 +40,7 @@ "icon": "fa fa-flag", "idx": 1, "links": [], - "modified": "2023-12-08 15:52:37.525003", + "modified": "2024-03-23 16:04:05.395556", "modified_by": "Administrator", "module": "Workflow", "name": "Workflow State", @@ -64,7 +64,7 @@ ], "quick_entry": 1, "show_name_in_global_search": 1, - "sort_field": "modified", + "sort_field": "creation", "sort_order": "DESC", "states": [], "track_changes": 1, diff --git a/frappe/workflow/doctype/workflow_transition/workflow_transition.json b/frappe/workflow/doctype/workflow_transition/workflow_transition.json index 9397a4dfb3..dc6570b908 100644 --- a/frappe/workflow/doctype/workflow_transition/workflow_transition.json +++ b/frappe/workflow/doctype/workflow_transition/workflow_transition.json @@ -15,7 +15,7 @@ "condition", "column_break_7", "example", - "workflow_build_id" + "workflow_builder_id" ], "fields": [ { @@ -87,21 +87,22 @@ "options": "
doc.grand_total > 0
\n\n

Conditions should be written in simple Python. Please use properties available in the form only.

\n

Allowed functions:\n

\n

Example:

doc.creation > frappe.utils.add_to_date(frappe.utils.now_datetime(), days=-5, as_string=True, as_datetime=True) 

" }, { - "fieldname": "workflow_builder_id", - "fieldtype": "Data", - "hidden": 1, - "label": "Workflow Builder ID" + "fieldname": "workflow_builder_id", + "fieldtype": "Data", + "hidden": 1, + "label": "Workflow Builder ID" } ], "idx": 1, "istable": 1, "links": [], - "modified": "2023-05-02 19:57:42.370841", + "modified": "2024-03-23 16:04:05.493534", "modified_by": "Administrator", "module": "Workflow", "name": "Workflow Transition", "owner": "Administrator", "permissions": [], - "sort_field": "modified", - "sort_order": "DESC" + "sort_field": "creation", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/frappe/www/list.py b/frappe/www/list.py index 4682302214..d7c0b03b1a 100644 --- a/frappe/www/list.py +++ b/frappe/www/list.py @@ -108,7 +108,7 @@ def get_list_data( filters=filters, limit_start=limit_start, limit_page_length=limit, - order_by=list_context.order_by or "modified desc", + order_by=list_context.order_by or "creation desc", ) # allow guest if flag is set