diff --git a/propms/hooks.py b/propms/hooks.py index e1fdd45..d4f4d80 100755 --- a/propms/hooks.py +++ b/propms/hooks.py @@ -89,97 +89,7 @@ # --------------- # Hook on document methods and events -fixtures = [ - { - "doctype": "Custom Field", - "filters": [ - [ - "name", - "in", - ( - "Company-default_maintenance_tax_template", - "Company-default_tax_account_head", - "Company-default_tax_template", - "Company-property_management_settings", - "Company-security_account_code", - "Issue Materials Detail-mateiral_request", - "Issue-col_brk_001", - "Issue-column_break_14", - "Issue-column_break_4", - "Issue-customer_feedback", - "Issue-defect_found", - "Issue-material_request", - "Issue-materials_billed", - "Issue-materials_required", - "Issue-person_in_charge_name", - "Issue-person_in_charge", - "Issue-property_name", - "Issue-section_break_15", - "Issue-sub_contractor_contact", - "Issue-sub_contractor_name", - "Item-reading_required", - "Material Request Item-material_request", - "Material Request-sales_invoice", - "Quotation-cost_center", - "Sales Invoice-job_card", - "Sales Invoice-lease_information", - "Sales Invoice-lease_item", - "Sales Invoice-lease", - ), - ] - ], - }, - { - "doctype": "Property Setter", - "filters": [ - [ - "name", - "in", - ( - "Contact-department-fieldtype", - "Contact-department-options", - "Daily Checklist-default_print_format", - "Issue-company-fetch_from", - "Issue-email_account-report_hide", - "Issue-issue_type-in_standard_filter", - "Issue-issue_type-reqd", - "Issue-opening_date-in_list_view", - "Issue-priority-in_standard_filter", - "Issue-quick_entry", - "Issue-raised_by-in_list_view", - "Issue-raised_by-report_hide", - "Issue-section_break_19-collapsible", - "Issue-section_break_7-collapsible", - "Issue-status-options", - "Journal Entry Account-account-columns", - "Journal Entry Account-cost_center-columns", - "Key Set Detail-key_set-in_standard_filter", - "Key Set Detail-returned-in_standard_filter", - "Key Set Detail-taken_by-in_standard_filter", - "Lease-customer-in_list_view", - "Lease-customer-in_standard_filter", - "Lease-end_date-in_list_view", - "Lease-lease_customer-in_standard_filter", - "Lease-property_owner-in_list_view", - "Lease-property_owner-in_standard_filter", - "Lease-property_user-in_standard_filter", - "Lease-property-in_standard_filter", - "Lease-security_status-in_standard_filter", - "Lease-security_status-options", - "Lease-start_date-in_list_view", - "Lease-wtax_paid_by-in_standard_filter", - "Material Request-material_request_type-options", - "Property-identification_section-bold", - "Property-section_break_13-bold", - "Property-section_break_22-bold", - "Property-section_break_4-bold", - "Property-status-options", - "Unit Type-search_fields", - ), - ] - ], - }, -] + doc_events = { diff --git a/propms/fixtures/custom_field.json b/propms/patches/fixtures/custom_field.json similarity index 100% rename from propms/fixtures/custom_field.json rename to propms/patches/fixtures/custom_field.json diff --git a/propms/patches/fixtures/old_fixtures_from_hooks.py b/propms/patches/fixtures/old_fixtures_from_hooks.py new file mode 100644 index 0000000..2e41fd6 --- /dev/null +++ b/propms/patches/fixtures/old_fixtures_from_hooks.py @@ -0,0 +1,91 @@ +fixtures = [ + { + "doctype": "Custom Field", + "filters": [ + [ + "name", + "in", + ( + "Company-default_maintenance_tax_template", + "Company-default_tax_account_head", + "Company-default_tax_template", + "Company-property_management_settings", + "Company-security_account_code", + "Issue Materials Detail-mateiral_request", + "Issue-col_brk_001", + "Issue-column_break_14", + "Issue-column_break_4", + "Issue-customer_feedback", + "Issue-defect_found", + "Issue-material_request", + "Issue-materials_billed", + "Issue-materials_required", + "Issue-person_in_charge_name", + "Issue-person_in_charge", + "Issue-property_name", + "Issue-section_break_15", + "Issue-sub_contractor_contact", + "Issue-sub_contractor_name", + "Item-reading_required", + "Material Request Item-material_request", + "Material Request-sales_invoice", + "Quotation-cost_center", + "Sales Invoice-job_card", + "Sales Invoice-lease_information", + "Sales Invoice-lease_item", + "Sales Invoice-lease", + ), + ] + ], + }, + { + "doctype": "Property Setter", + "filters": [ + [ + "name", + "in", + ( + "Contact-department-fieldtype", + "Contact-department-options", + "Daily Checklist-default_print_format", + "Issue-company-fetch_from", + "Issue-email_account-report_hide", + "Issue-issue_type-in_standard_filter", + "Issue-issue_type-reqd", + "Issue-opening_date-in_list_view", + "Issue-priority-in_standard_filter", + "Issue-quick_entry", + "Issue-raised_by-in_list_view", + "Issue-raised_by-report_hide", + "Issue-section_break_19-collapsible", + "Issue-section_break_7-collapsible", + "Issue-status-options", + "Journal Entry Account-account-columns", + "Journal Entry Account-cost_center-columns", + "Key Set Detail-key_set-in_standard_filter", + "Key Set Detail-returned-in_standard_filter", + "Key Set Detail-taken_by-in_standard_filter", + "Lease-customer-in_list_view", + "Lease-customer-in_standard_filter", + "Lease-end_date-in_list_view", + "Lease-lease_customer-in_standard_filter", + "Lease-property_owner-in_list_view", + "Lease-property_owner-in_standard_filter", + "Lease-property_user-in_standard_filter", + "Lease-property-in_standard_filter", + "Lease-security_status-in_standard_filter", + "Lease-security_status-options", + "Lease-start_date-in_list_view", + "Lease-wtax_paid_by-in_standard_filter", + "Material Request-material_request_type-options", + "Property-identification_section-bold", + "Property-section_break_13-bold", + "Property-section_break_22-bold", + "Property-section_break_4-bold", + "Property-status-options", + "Unit Type-search_fields", + ), + ] + ], + }, +] \ No newline at end of file diff --git a/propms/fixtures/property_setter.json b/propms/patches/fixtures/property_setter.json similarity index 100% rename from propms/fixtures/property_setter.json rename to propms/patches/fixtures/property_setter.json