From 05edc264e676996e375224db93f12ae09ad4fcc7 Mon Sep 17 00:00:00 2001 From: Aryan Kaushik <34372791+Aryan20@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:57:04 +0530 Subject: [PATCH] chore: rename app to Next CRM (#13) --- .gitignore | 6 +- .releaserc | 4 +- README.md | 8 +- crm/modules.txt | 1 - crm/patches.txt | 11 -- .../v1_0/create_default_fields_layout.py | 5 - .../create_email_template_custom_fields.py | 5 - docker/docker-compose.yml | 2 +- docker/init.sh | 2 +- frontend/index.html | 76 +++++------ frontend/package.json | 4 +- .../src/components/Activities/Activities.vue | 6 +- .../src/components/Activities/NoteArea.vue | 2 +- .../components/Activities/WhatsAppArea.vue | 2 +- .../src/components/Activities/WhatsAppBox.vue | 2 +- frontend/src/components/Apps.vue | 2 +- frontend/src/components/CallUI.vue | 8 +- frontend/src/components/CommunicationArea.vue | 4 +- .../components/Controls/MultiselectInput.vue | 2 +- .../FilesUploader/FilesUploaderArea.vue | 2 +- frontend/src/components/Filter.vue | 2 +- frontend/src/components/GroupBy.vue | 2 +- .../src/components/Kanban/KanbanSettings.vue | 2 +- frontend/src/components/ListBulkActions.vue | 2 +- .../src/components/Modals/AddressModal.vue | 2 +- .../src/components/Modals/CallLogModal.vue | 4 +- .../src/components/Modals/ContactModal.vue | 2 +- .../src/components/Modals/CustomerModal.vue | 2 +- .../src/components/Modals/EditValueModal.vue | 2 +- frontend/src/components/Modals/LeadModal.vue | 2 +- frontend/src/components/Modals/NoteModal.vue | 4 +- .../components/Modals/OpportunityModal.vue | 4 +- .../src/components/Modals/QuickEntryModal.vue | 4 +- frontend/src/components/Modals/ViewModal.vue | 4 +- .../components/QuickEntryLayoutBuilder.vue | 2 +- .../components/Settings/InviteMemberPage.vue | 2 +- .../src/components/Settings/SettingsPage.vue | 2 +- .../Settings/SidePanelLayoutBuilder.vue | 2 +- .../components/Settings/SidePanelModal.vue | 4 +- frontend/src/components/SortBy.vue | 2 +- frontend/src/components/UserDropdown.vue | 4 +- frontend/src/components/ViewControls.vue | 14 +-- frontend/src/main.js | 2 +- frontend/src/pages/Contact.vue | 10 +- frontend/src/pages/Customer.vue | 2 +- frontend/src/pages/Lead.vue | 6 +- frontend/src/pages/MobileContact.vue | 10 +- frontend/src/pages/MobileCustomer.vue | 2 +- frontend/src/pages/MobileLead.vue | 6 +- frontend/src/pages/MobileOpportunoty.vue | 12 +- frontend/src/pages/Notes.vue | 4 +- frontend/src/pages/Opportunity.vue | 12 +- frontend/src/router.js | 4 +- frontend/src/telemetry.ts | 2 +- frontend/src/translation.js | 2 +- frontend/vite.config.js | 16 +-- {crm => next_crm}/__init__.py | 2 +- {crm => next_crm}/api/__init__.py | 2 +- {crm => next_crm}/api/activities.py | 2 +- {crm => next_crm}/api/auth.py | 2 +- {crm => next_crm}/api/comment.py | 2 +- {crm => next_crm}/api/contact.py | 0 {crm => next_crm}/api/demo.py | 2 +- {crm => next_crm}/api/doc.py | 6 +- {crm => next_crm}/api/lead.py | 4 +- {crm => next_crm}/api/notifications.py | 0 {crm => next_crm}/api/opportunity.py | 4 +- {crm => next_crm}/api/session.py | 0 {crm => next_crm}/api/todo.py | 2 +- {crm => next_crm}/api/views.py | 0 {crm => next_crm}/api/whatsapp.py | 4 +- {crm => next_crm}/config/__init__.py | 0 {crm => next_crm}/fixtures/custom_field.json | 60 ++++----- .../fixtures/property_setter.json | 10 +- {crm => next_crm}/hooks.py | 118 +++++++++--------- {crm => next_crm}/install.py | 0 {crm => next_crm}/integrations/twilio/api.py | 4 +- .../integrations/twilio/twilio_handler.py | 4 +- .../integrations/twilio/utils.py | 0 next_crm/modules.txt | 1 + {crm/fcrm => next_crm/ncrm}/__init__.py | 0 .../ncrm}/doctype/__init__.py | 0 .../ncrm}/doctype/crm_call_log/__init__.py | 0 .../doctype/crm_call_log/crm_call_log.js | 0 .../doctype/crm_call_log/crm_call_log.json | 4 +- .../doctype/crm_call_log/crm_call_log.py | 2 +- .../doctype/crm_call_log/test_crm_call_log.py | 0 .../crm_communication_status/__init__.py | 0 .../crm_communication_status.js | 0 .../crm_communication_status.json | 2 +- .../crm_communication_status.py | 0 .../test_crm_communication_status.py | 0 .../ncrm}/doctype/crm_contacts/__init__.py | 0 .../doctype/crm_contacts/crm_contacts.json | 2 +- .../doctype/crm_contacts/crm_contacts.py | 0 .../ncrm}/doctype/crm_deal_status/__init__.py | 0 .../crm_deal_status/crm_deal_status.js | 0 .../crm_deal_status/crm_deal_status.json | 2 +- .../crm_deal_status/crm_deal_status.py | 0 .../crm_deal_status/test_crm_deal_status.py | 0 .../doctype/crm_fields_layout/__init__.py | 0 .../crm_fields_layout/crm_fields_layout.js | 0 .../crm_fields_layout/crm_fields_layout.json | 2 +- .../crm_fields_layout/crm_fields_layout.py | 0 .../test_crm_fields_layout.py | 0 .../ncrm}/doctype/crm_form_script/__init__.py | 0 .../crm_form_script/crm_form_script.js | 0 .../crm_form_script/crm_form_script.json | 2 +- .../crm_form_script/crm_form_script.py | 0 .../crm_form_script/test_crm_form_script.py | 0 .../ncrm}/doctype/crm_invitation/__init__.py | 0 .../doctype/crm_invitation/crm_invitation.js | 0 .../crm_invitation/crm_invitation.json | 2 +- .../doctype/crm_invitation/crm_invitation.py | 4 +- .../crm_invitation/test_crm_invitation.py | 0 .../ncrm}/doctype/crm_lead_status/__init__.py | 0 .../crm_lead_status/crm_lead_status.js | 0 .../crm_lead_status/crm_lead_status.json | 2 +- .../crm_lead_status/crm_lead_status.py | 0 .../crm_lead_status/test_crm_lead_status.py | 0 .../doctype/crm_notification/__init__.py | 0 .../crm_notification/crm_notification.js | 0 .../crm_notification/crm_notification.json | 2 +- .../crm_notification/crm_notification.py | 0 .../crm_notification/test_crm_notification.py | 0 .../crm_service_level_agreement/__init__.py | 0 .../crm_service_level_agreement.js | 0 .../crm_service_level_agreement.json | 2 +- .../crm_service_level_agreement.py | 2 +- .../test_crm_service_level_agreement.py | 0 .../crm_service_level_agreement/utils.py | 0 .../crm_service_level_priority/__init__.py | 0 .../crm_service_level_priority.js | 0 .../crm_service_level_priority.json | 2 +- .../crm_service_level_priority.py | 0 .../test_crm_service_level_priority.py | 0 .../doctype/crm_status_change_log/__init__.py | 0 .../crm_status_change_log.json | 2 +- .../crm_status_change_log.py | 0 .../ncrm}/doctype/crm_task/__init__.py | 0 .../ncrm}/doctype/crm_task/crm_task.js | 0 .../ncrm}/doctype/crm_task/crm_task.json | 2 +- .../ncrm}/doctype/crm_task/crm_task.py | 2 +- .../ncrm}/doctype/crm_task/test_crm_task.py | 0 .../doctype/crm_view_settings/__init__.py | 0 .../crm_view_settings/crm_view_settings.js | 0 .../crm_view_settings/crm_view_settings.json | 2 +- .../crm_view_settings/crm_view_settings.py | 0 .../test_crm_view_settings.py | 0 .../doctype/erpnext_crm_settings/__init__.py | 0 .../erpnext_crm_settings.js | 0 .../erpnext_crm_settings.json | 2 +- .../erpnext_crm_settings.py | 4 +- .../test_erpnext_crm_settings.py | 0 .../ncrm/doctype/ncrm_note}/__init__.py | 0 .../ncrm/doctype/ncrm_note/ncrm_note.js | 0 .../ncrm/doctype/ncrm_note/ncrm_note.json | 4 +- .../ncrm/doctype/ncrm_note/ncrm_note.py | 2 +- .../ncrm/doctype/ncrm_note}/test_fcrm_note.py | 2 +- .../ncrm/doctype/ncrm_settings}/__init__.py | 0 .../doctype/ncrm_settings/ncrm_settings.js | 0 .../doctype/ncrm_settings/ncrm_settings.json | 4 +- .../doctype/ncrm_settings/ncrm_settings.py | 4 +- .../ncrm_settings/test_ncrm_settings.py | 2 +- .../ncrm}/doctype/twilio_agents/__init__.py | 0 .../twilio_agents/test_twilio_agents.py | 0 .../doctype/twilio_agents/twilio_agents.js | 0 .../doctype/twilio_agents/twilio_agents.json | 2 +- .../doctype/twilio_agents/twilio_agents.py | 0 .../ncrm}/doctype/twilio_settings/__init__.py | 0 .../twilio_settings/test_twilio_settings.py | 0 .../twilio_settings/twilio_settings.js | 0 .../twilio_settings/twilio_settings.json | 2 +- .../twilio_settings/twilio_settings.py | 4 +- .../workspace/frappe_crm/frappe_crm.json | 10 +- {crm => next_crm}/overrides/contact.py | 0 {crm => next_crm}/overrides/customer.py | 0 {crm => next_crm}/overrides/customize_form.py | 0 {crm => next_crm}/overrides/email_template.py | 0 {crm => next_crm}/overrides/lead.py | 4 +- {crm => next_crm}/overrides/opportunity.py | 4 +- {crm => next_crm}/overrides/user.py | 2 +- next_crm/patches.txt | 11 ++ {crm => next_crm}/patches/v1_0/__init__.py | 0 .../v1_0/create_default_fields_layout.py | 5 + .../create_default_sidebar_fields_layout.py | 0 .../create_email_template_custom_fields.py | 5 + .../v1_0/move_crm_note_data_to_fcrm_note.py | 10 +- .../update_opportunity_quick_entry_layout.py | 0 {crm => next_crm}/public/.gitkeep | 0 {crm => next_crm}/public/images/desk.png | Bin {crm => next_crm}/public/images/logo.png | Bin {crm => next_crm}/public/images/logo.svg | 0 {crm => next_crm}/public/js/lead.js | 2 +- {crm => next_crm}/public/js/opportunity.js | 2 +- .../public/manifest/apple-icon-180.png | Bin .../manifest/apple-splash-1125-2436.jpg | Bin .../public/manifest/apple-splash-1136-640.jpg | Bin .../manifest/apple-splash-1170-2532.jpg | Bin .../manifest/apple-splash-1179-2556.jpg | Bin .../manifest/apple-splash-1242-2208.jpg | Bin .../manifest/apple-splash-1242-2688.jpg | Bin .../manifest/apple-splash-1284-2778.jpg | Bin .../manifest/apple-splash-1290-2796.jpg | Bin .../public/manifest/apple-splash-1334-750.jpg | Bin .../manifest/apple-splash-1488-2266.jpg | Bin .../manifest/apple-splash-1536-2048.jpg | Bin .../manifest/apple-splash-1620-2160.jpg | Bin .../manifest/apple-splash-1640-2360.jpg | Bin .../manifest/apple-splash-1668-2224.jpg | Bin .../manifest/apple-splash-1668-2388.jpg | Bin .../public/manifest/apple-splash-1792-828.jpg | Bin .../manifest/apple-splash-2048-1536.jpg | Bin .../manifest/apple-splash-2048-2732.jpg | Bin .../manifest/apple-splash-2160-1620.jpg | Bin .../manifest/apple-splash-2208-1242.jpg | Bin .../manifest/apple-splash-2224-1668.jpg | Bin .../manifest/apple-splash-2266-1488.jpg | Bin .../manifest/apple-splash-2360-1640.jpg | Bin .../manifest/apple-splash-2388-1668.jpg | Bin .../manifest/apple-splash-2436-1125.jpg | Bin .../manifest/apple-splash-2532-1170.jpg | Bin .../manifest/apple-splash-2556-1179.jpg | Bin .../manifest/apple-splash-2688-1242.jpg | Bin .../manifest/apple-splash-2732-2048.jpg | Bin .../manifest/apple-splash-2778-1284.jpg | Bin .../manifest/apple-splash-2796-1290.jpg | Bin .../public/manifest/apple-splash-640-1136.jpg | Bin .../public/manifest/apple-splash-750-1334.jpg | Bin .../public/manifest/apple-splash-828-1792.jpg | Bin .../manifest/manifest-icon-192.maskable.png | Bin .../manifest/manifest-icon-512.maskable.png | Bin {crm => next_crm}/templates/__init__.py | 0 .../templates/emails/crm_invitation.html | 2 +- {crm => next_crm}/templates/pages/__init__.py | 0 {crm => next_crm}/uninstall.py | 0 {crm => next_crm}/www/__init__.py | 0 crm/www/crm.py => next_crm/www/next-crm.py | 4 +- pyproject.toml | 4 +- 239 files changed, 340 insertions(+), 340 deletions(-) delete mode 100644 crm/modules.txt delete mode 100644 crm/patches.txt delete mode 100644 crm/patches/v1_0/create_default_fields_layout.py delete mode 100644 crm/patches/v1_0/create_email_template_custom_fields.py rename {crm => next_crm}/__init__.py (52%) rename {crm => next_crm}/api/__init__.py (98%) rename {crm => next_crm}/api/activities.py (99%) rename {crm => next_crm}/api/auth.py (93%) rename {crm => next_crm}/api/comment.py (97%) rename {crm => next_crm}/api/contact.py (100%) rename {crm => next_crm}/api/demo.py (95%) rename {crm => next_crm}/api/doc.py (99%) rename {crm => next_crm}/api/lead.py (78%) rename {crm => next_crm}/api/notifications.py (100%) rename {crm => next_crm}/api/opportunity.py (92%) rename {crm => next_crm}/api/session.py (100%) rename {crm => next_crm}/api/todo.py (97%) rename {crm => next_crm}/api/views.py (100%) rename {crm => next_crm}/api/whatsapp.py (98%) rename {crm => next_crm}/config/__init__.py (100%) rename {crm => next_crm}/fixtures/custom_field.json (98%) rename {crm => next_crm}/fixtures/property_setter.json (94%) rename {crm => next_crm}/hooks.py (58%) rename {crm => next_crm}/install.py (100%) rename {crm => next_crm}/integrations/twilio/api.py (97%) rename {crm => next_crm}/integrations/twilio/twilio_handler.py (98%) rename {crm => next_crm}/integrations/twilio/utils.py (100%) create mode 100644 next_crm/modules.txt rename {crm/fcrm => next_crm/ncrm}/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_call_log/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_call_log/crm_call_log.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_call_log/crm_call_log.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_call_log/crm_call_log.py (97%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_call_log/test_crm_call_log.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_communication_status/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_communication_status/crm_communication_status.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_communication_status/crm_communication_status.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_communication_status/crm_communication_status.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_communication_status/test_crm_communication_status.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_contacts/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_contacts/crm_contacts.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_contacts/crm_contacts.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_deal_status/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_deal_status/crm_deal_status.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_deal_status/crm_deal_status.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_deal_status/crm_deal_status.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_deal_status/test_crm_deal_status.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_fields_layout/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_fields_layout/crm_fields_layout.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_fields_layout/crm_fields_layout.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_fields_layout/crm_fields_layout.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_fields_layout/test_crm_fields_layout.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_form_script/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_form_script/crm_form_script.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_form_script/crm_form_script.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_form_script/crm_form_script.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_form_script/test_crm_form_script.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_invitation/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_invitation/crm_invitation.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_invitation/crm_invitation.json (99%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_invitation/crm_invitation.py (94%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_invitation/test_crm_invitation.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_lead_status/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_lead_status/crm_lead_status.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_lead_status/crm_lead_status.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_lead_status/crm_lead_status.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_lead_status/test_crm_lead_status.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_notification/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_notification/crm_notification.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_notification/crm_notification.json (99%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_notification/crm_notification.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_notification/test_crm_notification.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_agreement/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_agreement/crm_service_level_agreement.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_agreement/crm_service_level_agreement.json (99%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_agreement/crm_service_level_agreement.py (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_agreement/test_crm_service_level_agreement.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_agreement/utils.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_priority/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_priority/crm_service_level_priority.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_priority/crm_service_level_priority.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_priority/crm_service_level_priority.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_service_level_priority/test_crm_service_level_priority.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_status_change_log/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_status_change_log/crm_status_change_log.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_status_change_log/crm_status_change_log.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_task/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_task/crm_task.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_task/crm_task.json (99%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_task/crm_task.py (96%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_task/test_crm_task.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_view_settings/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_view_settings/crm_view_settings.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_view_settings/crm_view_settings.json (99%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_view_settings/crm_view_settings.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/crm_view_settings/test_crm_view_settings.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/erpnext_crm_settings/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/erpnext_crm_settings/erpnext_crm_settings.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/erpnext_crm_settings/erpnext_crm_settings.json (99%) rename {crm/fcrm => next_crm/ncrm}/doctype/erpnext_crm_settings/erpnext_crm_settings.py (97%) rename {crm/fcrm => next_crm/ncrm}/doctype/erpnext_crm_settings/test_erpnext_crm_settings.py (100%) rename {crm/fcrm/doctype/fcrm_note => next_crm/ncrm/doctype/ncrm_note}/__init__.py (100%) rename crm/fcrm/doctype/fcrm_note/fcrm_note.js => next_crm/ncrm/doctype/ncrm_note/ncrm_note.js (100%) rename crm/fcrm/doctype/fcrm_note/fcrm_note.json => next_crm/ncrm/doctype/ncrm_note/ncrm_note.json (97%) rename crm/fcrm/doctype/fcrm_note/fcrm_note.py => next_crm/ncrm/doctype/ncrm_note/ncrm_note.py (93%) rename {crm/fcrm/doctype/fcrm_note => next_crm/ncrm/doctype/ncrm_note}/test_fcrm_note.py (81%) rename {crm/fcrm/doctype/fcrm_settings => next_crm/ncrm/doctype/ncrm_settings}/__init__.py (100%) rename crm/fcrm/doctype/fcrm_settings/fcrm_settings.js => next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.js (100%) rename crm/fcrm/doctype/fcrm_settings/fcrm_settings.json => next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.json (93%) rename crm/fcrm/doctype/fcrm_settings/fcrm_settings.py => next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.py (78%) rename crm/fcrm/doctype/fcrm_settings/test_fcrm_settings.py => next_crm/ncrm/doctype/ncrm_settings/test_ncrm_settings.py (79%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_agents/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_agents/test_twilio_agents.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_agents/twilio_agents.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_agents/twilio_agents.json (98%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_agents/twilio_agents.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_settings/__init__.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_settings/test_twilio_settings.py (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_settings/twilio_settings.js (100%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_settings/twilio_settings.json (99%) rename {crm/fcrm => next_crm/ncrm}/doctype/twilio_settings/twilio_settings.py (94%) rename {crm/fcrm => next_crm/ncrm}/workspace/frappe_crm/frappe_crm.json (97%) rename {crm => next_crm}/overrides/contact.py (100%) rename {crm => next_crm}/overrides/customer.py (100%) rename {crm => next_crm}/overrides/customize_form.py (100%) rename {crm => next_crm}/overrides/email_template.py (100%) rename {crm => next_crm}/overrides/lead.py (97%) rename {crm => next_crm}/overrides/opportunity.py (97%) rename {crm => next_crm}/overrides/user.py (80%) create mode 100644 next_crm/patches.txt rename {crm => next_crm}/patches/v1_0/__init__.py (100%) create mode 100644 next_crm/patches/v1_0/create_default_fields_layout.py rename {crm => next_crm}/patches/v1_0/create_default_sidebar_fields_layout.py (100%) create mode 100644 next_crm/patches/v1_0/create_email_template_custom_fields.py rename {crm => next_crm}/patches/v1_0/move_crm_note_data_to_fcrm_note.py (72%) rename {crm => next_crm}/patches/v1_0/update_opportunity_quick_entry_layout.py (100%) rename {crm => next_crm}/public/.gitkeep (100%) rename {crm => next_crm}/public/images/desk.png (100%) rename {crm => next_crm}/public/images/logo.png (100%) rename {crm => next_crm}/public/images/logo.svg (100%) rename {crm => next_crm}/public/js/lead.js (69%) rename {crm => next_crm}/public/js/opportunity.js (68%) rename {crm => next_crm}/public/manifest/apple-icon-180.png (100%) rename {crm => next_crm}/public/manifest/apple-splash-1125-2436.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1136-640.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1170-2532.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1179-2556.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1242-2208.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1242-2688.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1284-2778.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1290-2796.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1334-750.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1488-2266.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1536-2048.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1620-2160.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1640-2360.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1668-2224.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1668-2388.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-1792-828.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2048-1536.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2048-2732.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2160-1620.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2208-1242.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2224-1668.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2266-1488.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2360-1640.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2388-1668.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2436-1125.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2532-1170.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2556-1179.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2688-1242.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2732-2048.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2778-1284.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-2796-1290.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-640-1136.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-750-1334.jpg (100%) rename {crm => next_crm}/public/manifest/apple-splash-828-1792.jpg (100%) rename {crm => next_crm}/public/manifest/manifest-icon-192.maskable.png (100%) rename {crm => next_crm}/public/manifest/manifest-icon-512.maskable.png (100%) rename {crm => next_crm}/templates/__init__.py (100%) rename {crm => next_crm}/templates/emails/crm_invitation.html (62%) rename {crm => next_crm}/templates/pages/__init__.py (100%) rename {crm => next_crm}/uninstall.py (100%) rename {crm => next_crm}/www/__init__.py (100%) rename crm/www/crm.py => next_crm/www/next-crm.py (93%) diff --git a/.gitignore b/.gitignore index 206a011d4..a42db7050 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ __pycache__ dev-dist tags node_modules -crm/public/frontend +next_crm/public/frontend frontend/yarn.lock -crm/www/crm.html -build +next_crm/www/next-crm.html +build \ No newline at end of file diff --git a/.releaserc b/.releaserc index 0c43b999a..ffcda2ea9 100644 --- a/.releaserc +++ b/.releaserc @@ -7,12 +7,12 @@ "@semantic-release/release-notes-generator", [ "@semantic-release/exec", { - "prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" crm/__init__.py' + "prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" next_crm/__init__.py' } ], [ "@semantic-release/git", { - "assets": ["crm/__init__.py"], + "assets": ["next_crm/__init__.py"], "message": "chore(release): Bumped to Version ${nextRelease.version}" } ], diff --git a/README.md b/README.md index ed962a2a1..62195545d 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,9 @@ Get started with your personal or business site with a few clicks on [Frappe Clo ### Docker (Recommended) -The quickest way to set up Frappe CRM and take it for a test ride. +The quickest way to set up Next CRM and take it for a test ride. -Frappe framework is multi-tenant and supports multiple apps by default. This docker compose is just a standalone version with Frappe CRM pre-installed. Just put it behind your desired reverse-proxy if needed, and you're good to go. +Frappe framework is multi-tenant and supports multiple apps by default. This docker compose is just a standalone version with Next CRM pre-installed. Just put it behind your desired reverse-proxy if needed, and you're good to go. If you wish to use multiple Frappe apps or need multi-tenancy. Take a look at our production ready self-hosted workflow, or join us on Frappe Cloud to get first party support and hassle-free hosting. @@ -68,7 +68,7 @@ Docker Compose File: wget -O docker-compose.yml https://raw.githubusercontent.com/frappe/crm/develop/docker/docker-compose.yml -Frappe CRM bench setup script +Next CRM bench setup script wget -O init.sh https://raw.githubusercontent.com/frappe/crm/develop/docker/init.sh @@ -99,7 +99,7 @@ If you prefer self-hosting, follow the official [Frappe Bench Installation](http ### Local Setup 1. [Install Bench](https://github.com/frappe/bench). -2. Install Frappe CRM app: +2. Install Next CRM app: ```sh $ bench get-app crm ``` diff --git a/crm/modules.txt b/crm/modules.txt deleted file mode 100644 index e23619140..000000000 --- a/crm/modules.txt +++ /dev/null @@ -1 +0,0 @@ -FCRM \ No newline at end of file diff --git a/crm/patches.txt b/crm/patches.txt deleted file mode 100644 index e19c2c867..000000000 --- a/crm/patches.txt +++ /dev/null @@ -1,11 +0,0 @@ -[pre_model_sync] -# Patches added in this section will be executed before doctypes are migrated -# Read docs to understand patches: https://frappeframework.com/docs/v14/user/en/database-migrations -crm.patches.v1_0.move_crm_note_data_to_fcrm_note - -[post_model_sync] -# Patches added in this section will be executed after doctypes are migrated -crm.patches.v1_0.create_email_template_custom_fields -crm.patches.v1_0.create_default_fields_layout #31/10/2024 -crm.patches.v1_0.create_default_sidebar_fields_layout -crm.patches.v1_0.update_opportunity_quick_entry_layout \ No newline at end of file diff --git a/crm/patches/v1_0/create_default_fields_layout.py b/crm/patches/v1_0/create_default_fields_layout.py deleted file mode 100644 index 383e7ac23..000000000 --- a/crm/patches/v1_0/create_default_fields_layout.py +++ /dev/null @@ -1,5 +0,0 @@ - -from crm.install import add_default_fields_layout - -def execute(): - add_default_fields_layout() \ No newline at end of file diff --git a/crm/patches/v1_0/create_email_template_custom_fields.py b/crm/patches/v1_0/create_email_template_custom_fields.py deleted file mode 100644 index ea6665d79..000000000 --- a/crm/patches/v1_0/create_email_template_custom_fields.py +++ /dev/null @@ -1,5 +0,0 @@ - -from crm.install import add_email_template_custom_fields - -def execute(): - add_email_template_custom_fields() \ No newline at end of file diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 75e2d142b..97051cd69 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,5 +1,5 @@ version: "3.7" -name: crm +name: next_crm services: mariadb: image: mariadb:10.8 diff --git a/docker/init.sh b/docker/init.sh index d9b89d811..4ac967b93 100644 --- a/docker/init.sh +++ b/docker/init.sh @@ -30,7 +30,7 @@ bench new-site crm.localhost \ --admin-password admin \ --no-mariadb-socket -bench --site crm.localhost install-app crm +bench --site crm.localhost install-app next_crm bench --site crm.localhost set-config developer_mode 1 bench --site crm.localhost clear-cache bench --site crm.localhost set-config mute_emails 1 diff --git a/frontend/index.html b/frontend/index.html index b9a44e485..fdaa97d0b 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -6,9 +6,9 @@ name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover maximum-scale=1.0, user-scalable=no" /> - Frappe CRM + Next CRM - + @@ -16,181 +16,181 @@ rel="icon" type="image/png" sizes="196x196" - href="/assets/crm/manifest/apple-icon-180.png" + href="/assets/next_crm/manifest/apple-icon-180.png" /> diff --git a/frontend/package.json b/frontend/package.json index 566839632..a5d5ec1ec 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,8 +4,8 @@ "version": "0.0.0", "scripts": { "dev": "vite", - "build": "vite build --base=/assets/crm/frontend/ && yarn copy-html-entry", - "copy-html-entry": "cp ../crm/public/frontend/index.html ../crm/www/crm.html", + "build": "vite build --base=/assets/next_crm/frontend/ && yarn copy-html-entry", + "copy-html-entry": "cp ../next_crm/public/frontend/index.html ../next_crm/www/next-crm.html", "serve": "vite preview" }, "dependencies": { diff --git a/frontend/src/components/Activities/Activities.vue b/frontend/src/components/Activities/Activities.vue index 83bbd5b39..5ca88d17b 100644 --- a/frontend/src/components/Activities/Activities.vue +++ b/frontend/src/components/Activities/Activities.vue @@ -542,7 +542,7 @@ const changeTabTo = (tabName) => { } const all_activities = createResource({ - url: 'crm.api.activities.get_activities', + url: 'next_crm.api.activities.get_activities', params: { name: doc.value.data.name }, cache: ['activity', doc.value.data.name], auto: true, @@ -588,7 +588,7 @@ const all_activities = createResource({ const showWhatsappTemplates = ref(false) const whatsappMessages = createResource({ - url: 'crm.api.whatsapp.get_whatsapp_messages', + url: 'next_crm.api.whatsapp.get_whatsapp_messages', cache: ['whatsapp_messages', doc.value.data.name], params: { reference_doctype: props.doctype, @@ -626,7 +626,7 @@ function sendTemplate(template) { showWhatsappTemplates.value = false capture('send_whatsapp_template', { doctype: props.doctype }) createResource({ - url: 'crm.api.whatsapp.send_whatsapp_template', + url: 'next_crm.api.whatsapp.send_whatsapp_template', params: { reference_doctype: props.doctype, reference_name: doc.value.data.name, diff --git a/frontend/src/components/Activities/NoteArea.vue b/frontend/src/components/Activities/NoteArea.vue index 64b7293af..d93169770 100644 --- a/frontend/src/components/Activities/NoteArea.vue +++ b/frontend/src/components/Activities/NoteArea.vue @@ -65,7 +65,7 @@ const { getUser } = usersStore() async function deleteNote(name) { await call('frappe.client.delete', { - doctype: 'FCRM Note', + doctype: 'NCRM Note', name, }) notes.reload() diff --git a/frontend/src/components/Activities/WhatsAppArea.vue b/frontend/src/components/Activities/WhatsAppArea.vue index fd7509bba..ad75b0425 100644 --- a/frontend/src/components/Activities/WhatsAppArea.vue +++ b/frontend/src/components/Activities/WhatsAppArea.vue @@ -212,7 +212,7 @@ const reaction = ref(true) function reactOnMessage(name, emoji) { createResource({ - url: 'crm.api.whatsapp.react_on_whatsapp_message', + url: 'next_crm.api.whatsapp.react_on_whatsapp_message', params: { emoji, reply_to_name: name, diff --git a/frontend/src/components/Activities/WhatsAppBox.vue b/frontend/src/components/Activities/WhatsAppBox.vue index 40d19ec08..aae94ca40 100644 --- a/frontend/src/components/Activities/WhatsAppBox.vue +++ b/frontend/src/components/Activities/WhatsAppBox.vue @@ -120,7 +120,7 @@ async function sendWhatsAppMessage() { whatsapp.value.content_type = 'text' reply.value = {} createResource({ - url: 'crm.api.whatsapp.create_whatsapp_message', + url: 'next_crm.api.whatsapp.create_whatsapp_message', params: args, auto: true, }) diff --git a/frontend/src/components/Apps.vue b/frontend/src/components/Apps.vue index a91c0b28f..5de39abe5 100644 --- a/frontend/src/components/Apps.vue +++ b/frontend/src/components/Apps.vue @@ -60,7 +60,7 @@ const apps = createResource({ }, ] data.map((app) => { - if (app.name === 'crm') return + if (app.name === 'next_crm') return _apps.push({ name: app.name, logo: app.logo, diff --git a/frontend/src/components/CallUI.vue b/frontend/src/components/CallUI.vue index da5c19457..e9087354d 100644 --- a/frontend/src/components/CallUI.vue +++ b/frontend/src/components/CallUI.vue @@ -229,7 +229,7 @@ const note = ref({ async function updateNote(_note, insert_mode = false) { note.value = _note if (insert_mode && _note.name) { - await call('crm.integrations.twilio.api.add_note_to_call_log', { + await call('next_crm.integrations.twilio.api.add_note_to_call_log', { call_sid: _call.parameters.CallSid, note: _note.name, }) @@ -244,14 +244,14 @@ let { style } = useDraggable(callPopup, { }) async function is_twilio_enabled() { - return await call('crm.integrations.twilio.api.is_enabled') + return await call('next_crm.integrations.twilio.api.is_enabled') } async function startupClient() { log.value = 'Requesting Access Token...' try { - const data = await call('crm.integrations.twilio.api.generate_access_token') + const data = await call('next_crm.integrations.twilio.api.generate_access_token') log.value = 'Got a token.' intitializeDevice(data.token) } catch (err) { @@ -287,7 +287,7 @@ function addDeviceListeners() { device.on('incoming', handleIncomingCall) device.on('tokenWillExpire', async () => { - const data = await call('crm.integrations.twilio.api.generate_access_token') + const data = await call('next_crm.integrations.twilio.api.generate_access_token') device.updateToken(data.token) }) } diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue index 2c1af6f3b..2353d93a1 100644 --- a/frontend/src/components/CommunicationArea.vue +++ b/frontend/src/components/CommunicationArea.vue @@ -128,7 +128,7 @@ const subject = computed(() => { }) const signature = createResource({ - url: 'crm.api.get_user_signature', + url: 'next_crm.api.get_user_signature', cache: 'user-email-signature', auto: true, }) @@ -206,7 +206,7 @@ async function sendComment() { }) if (comment && attachments.value.length) { capture('comment_attachments_added') - await call('crm.api.comment.add_attachments', { + await call('next_crm.api.comment.add_attachments', { name: comment.name, attachments: attachments.value.map((x) => x.name), }) diff --git a/frontend/src/components/Controls/MultiselectInput.vue b/frontend/src/components/Controls/MultiselectInput.vue index a5cb6928e..eeda955fe 100644 --- a/frontend/src/components/Controls/MultiselectInput.vue +++ b/frontend/src/components/Controls/MultiselectInput.vue @@ -141,7 +141,7 @@ watchDebounced( ) const filterOptions = createResource({ - url: 'crm.api.contact.search_emails', + url: 'next_crm.api.contact.search_emails', method: 'POST', cache: [text.value, 'Contact'], params: { txt: text.value }, diff --git a/frontend/src/components/FilesUploader/FilesUploaderArea.vue b/frontend/src/components/FilesUploader/FilesUploaderArea.vue index 2f9402983..367b860eb 100644 --- a/frontend/src/components/FilesUploader/FilesUploaderArea.vue +++ b/frontend/src/components/FilesUploader/FilesUploaderArea.vue @@ -163,7 +163,7 @@ const makeAttachmentsPublic = ref(props.options.makeAttachmentsPublic || false) onMounted(() => { createResource({ - url: 'crm.api.get_file_uploader_defaults', + url: 'next_crm.api.get_file_uploader_defaults', params: { doctype: props.doctype }, cache: ['file_uploader_defaults', props.doctype], auto: true, diff --git a/frontend/src/components/Filter.vue b/frontend/src/components/Filter.vue index 5a44c11ca..cc890ee79 100644 --- a/frontend/src/components/Filter.vue +++ b/frontend/src/components/Filter.vue @@ -193,7 +193,7 @@ const emit = defineEmits(['update']) const list = defineModel() const filterableFields = createResource({ - url: 'crm.api.doc.get_filterable_fields', + url: 'next_crm.api.doc.get_filterable_fields', cache: ['filterableFields', props.doctype], params: { doctype: props.doctype, diff --git a/frontend/src/components/GroupBy.vue b/frontend/src/components/GroupBy.vue index a856d0cd5..c35b2163c 100644 --- a/frontend/src/components/GroupBy.vue +++ b/frontend/src/components/GroupBy.vue @@ -49,7 +49,7 @@ const groupByValue = ref({ }) const groupByOptions = createResource({ - url: 'crm.api.doc.get_group_by_fields', + url: 'next_crm.api.doc.get_group_by_fields', cache: ['groupByOptions', props.doctype], params: { doctype: props.doctype, diff --git a/frontend/src/components/Kanban/KanbanSettings.vue b/frontend/src/components/Kanban/KanbanSettings.vue index e04c396ac..43d2c5f73 100644 --- a/frontend/src/components/Kanban/KanbanSettings.vue +++ b/frontend/src/components/Kanban/KanbanSettings.vue @@ -161,7 +161,7 @@ const columnFields = computed(() => { }) const fields = createResource({ - url: 'crm.api.doc.get_fields_meta', + url: 'next_crm.api.doc.get_fields_meta', params: { doctype: props.doctype, as_array: true }, cache: ['kanban_fields', props.doctype], auto: true, diff --git a/frontend/src/components/ListBulkActions.vue b/frontend/src/components/ListBulkActions.vue index 8a6a6fb9a..f4401e8a0 100644 --- a/frontend/src/components/ListBulkActions.vue +++ b/frontend/src/components/ListBulkActions.vue @@ -72,7 +72,7 @@ function convertToOpportunity(selections, unselectAll) { onClick: (close) => { capture('bulk_convert_to_opportunity') Array.from(selections).forEach((name) => { - call('crm.overrides.lead.convert_to_opportunity', { + call('next_crm.overrides.lead.convert_to_opportunity', { lead: name, }).then(() => { createToast({ diff --git a/frontend/src/components/Modals/AddressModal.vue b/frontend/src/components/Modals/AddressModal.vue index e7263e5bb..8a253e5b0 100644 --- a/frontend/src/components/Modals/AddressModal.vue +++ b/frontend/src/components/Modals/AddressModal.vue @@ -107,7 +107,7 @@ const dialogOptions = computed(() => { }) const sections = createResource({ - url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', + url: 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', cache: ['quickEntryFields', 'Address'], params: { doctype: 'Address', type: 'Quick Entry' }, auto: true, diff --git a/frontend/src/components/Modals/CallLogModal.vue b/frontend/src/components/Modals/CallLogModal.vue index 5c83e341e..003be0298 100644 --- a/frontend/src/components/Modals/CallLogModal.vue +++ b/frontend/src/components/Modals/CallLogModal.vue @@ -215,7 +215,7 @@ const detailFields = computed(() => { }) function createLead() { - call('crm.fcrm.doctype.crm_call_log.crm_call_log.create_lead_from_call_log', { + call('next_crm.ncrm.doctype.crm_call_log.crm_call_log.create_lead_from_call_log', { call_log: callLog.value.doc, }).then((d) => { if (d) { @@ -258,7 +258,7 @@ watch(show, (val) => { return } callNoteDoc.value = createDocumentResource({ - doctype: 'FCRM Note', + doctype: 'NCRM Note', name: doc.note, fields: ['title', 'content'], cache: ['note', doc.note], diff --git a/frontend/src/components/Modals/ContactModal.vue b/frontend/src/components/Modals/ContactModal.vue index 471933810..b84bc90b5 100644 --- a/frontend/src/components/Modals/ContactModal.vue +++ b/frontend/src/components/Modals/ContactModal.vue @@ -246,7 +246,7 @@ const detailFields = computed(() => { }) const sections = createResource({ - url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', + url: 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', cache: ['quickEntryFields', 'Contact'], params: { doctype: 'Contact', type: 'Quick Entry' }, auto: true, diff --git a/frontend/src/components/Modals/CustomerModal.vue b/frontend/src/components/Modals/CustomerModal.vue index 5e1e0877e..d658b0251 100644 --- a/frontend/src/components/Modals/CustomerModal.vue +++ b/frontend/src/components/Modals/CustomerModal.vue @@ -242,7 +242,7 @@ const fields = computed(() => { }) const sections = createResource({ - url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', + url: 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', cache: ['quickEntryFields', 'Customer'], params: { doctype: 'Customer', type: 'Quick Entry' }, auto: true, diff --git a/frontend/src/components/Modals/EditValueModal.vue b/frontend/src/components/Modals/EditValueModal.vue index 9a39e3aff..0164ed952 100644 --- a/frontend/src/components/Modals/EditValueModal.vue +++ b/frontend/src/components/Modals/EditValueModal.vue @@ -63,7 +63,7 @@ const show = defineModel() const emit = defineEmits(['reload']) const fields = createResource({ - url: 'crm.api.doc.get_fields', + url: 'next_crm.api.doc.get_fields', cache: ['fields', props.doctype], params: { doctype: props.doctype, diff --git a/frontend/src/components/Modals/LeadModal.vue b/frontend/src/components/Modals/LeadModal.vue index b151ef91f..0c9cab973 100644 --- a/frontend/src/components/Modals/LeadModal.vue +++ b/frontend/src/components/Modals/LeadModal.vue @@ -64,7 +64,7 @@ const error = ref(null) const isLeadCreating = ref(false) const sections = createResource({ - url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', + url: 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', cache: ['quickEntryFields', 'Lead'], params: { doctype: 'Lead', type: 'Quick Entry' }, auto: true, diff --git a/frontend/src/components/Modals/NoteModal.vue b/frontend/src/components/Modals/NoteModal.vue index c4325b8eb..1c76739a4 100644 --- a/frontend/src/components/Modals/NoteModal.vue +++ b/frontend/src/components/Modals/NoteModal.vue @@ -106,7 +106,7 @@ async function updateNote() { if (_note.value.name) { let d = await call('frappe.client.set_value', { - doctype: 'FCRM Note', + doctype: 'NCRM Note', name: _note.value.name, fieldname: _note.value, }) @@ -117,7 +117,7 @@ async function updateNote() { } else { let d = await call('frappe.client.insert', { doc: { - doctype: 'FCRM Note', + doctype: 'NCRM Note', title: _note.value.title, content: _note.value.content, reference_doctype: props.doctype, diff --git a/frontend/src/components/Modals/OpportunityModal.vue b/frontend/src/components/Modals/OpportunityModal.vue index 4dbd56ed4..755f06fc9 100644 --- a/frontend/src/components/Modals/OpportunityModal.vue +++ b/frontend/src/components/Modals/OpportunityModal.vue @@ -97,7 +97,7 @@ const isOpportunityCreating = ref(false) const chooseExistingCustomer = ref(false) const sections = createResource({ - url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', + url: 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', cache: ['quickEntryFields', 'Opportunity'], params: { doctype: 'Opportunity', type: 'Quick Entry' }, auto: true, @@ -165,7 +165,7 @@ function createOpportunity() { opportunity.website = 'https://' + opportunity.website } createResource({ - url: 'crm.overrides.opportunity.create_opportunity', + url: 'next_crm.overrides.opportunity.create_opportunity', params: { args: opportunity }, auto: true, validate() { diff --git a/frontend/src/components/Modals/QuickEntryModal.vue b/frontend/src/components/Modals/QuickEntryModal.vue index 034b26cc6..2c1b5a980 100644 --- a/frontend/src/components/Modals/QuickEntryModal.vue +++ b/frontend/src/components/Modals/QuickEntryModal.vue @@ -84,7 +84,7 @@ function getParams() { } const sections = createResource({ - url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', + url: 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', cache: ['quick-entry-sections', _doctype.value], params: getParams(), onSuccess(data) { @@ -120,7 +120,7 @@ function saveChanges() { }) loading.value = true call( - 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.save_fields_layout', + 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.save_fields_layout', { doctype: _doctype.value, type: 'Quick Entry', diff --git a/frontend/src/components/Modals/ViewModal.vue b/frontend/src/components/Modals/ViewModal.vue index a65300a85..c02bc9597 100644 --- a/frontend/src/components/Modals/ViewModal.vue +++ b/frontend/src/components/Modals/ViewModal.vue @@ -86,7 +86,7 @@ const _view = ref({ async function create() { view.value.doctype = props.doctype let v = await call( - 'crm.fcrm.doctype.crm_view_settings.crm_view_settings.create', + 'next_crm.ncrm.doctype.crm_view_settings.crm_view_settings.create', { view: view.value } ) show.value = false @@ -95,7 +95,7 @@ async function create() { async function update() { view.value.doctype = props.doctype - await call('crm.fcrm.doctype.crm_view_settings.crm_view_settings.update', { + await call('next_crm.ncrm.doctype.crm_view_settings.crm_view_settings.update', { view: view.value, }) show.value = false diff --git a/frontend/src/components/QuickEntryLayoutBuilder.vue b/frontend/src/components/QuickEntryLayoutBuilder.vue index 21fd0a01e..617ce7fea 100644 --- a/frontend/src/components/QuickEntryLayoutBuilder.vue +++ b/frontend/src/components/QuickEntryLayoutBuilder.vue @@ -147,7 +147,7 @@ const params = computed(() => { }) const fields = createResource({ - url: 'crm.api.doc.get_fields_meta', + url: 'next_crm.api.doc.get_fields_meta', params: params.value, cache: ['fieldsMeta', props.doctype], auto: true, diff --git a/frontend/src/components/Settings/InviteMemberPage.vue b/frontend/src/components/Settings/InviteMemberPage.vue index c57c43583..df1762c00 100644 --- a/frontend/src/components/Settings/InviteMemberPage.vue +++ b/frontend/src/components/Settings/InviteMemberPage.vue @@ -102,7 +102,7 @@ const roleMap = { } const inviteByEmail = createResource({ - url: 'crm.api.invite_by_email', + url: 'next_crm.api.invite_by_email', makeParams() { return { emails: convertArrayToString(invitees.value), diff --git a/frontend/src/components/Settings/SettingsPage.vue b/frontend/src/components/Settings/SettingsPage.vue index 6b8c750dd..2f1704f48 100644 --- a/frontend/src/components/Settings/SettingsPage.vue +++ b/frontend/src/components/Settings/SettingsPage.vue @@ -58,7 +58,7 @@ const props = defineProps({ }) const fields = createResource({ - url: 'crm.api.doc.get_fields', + url: 'next_crm.api.doc.get_fields', cache: ['fields', props.doctype], params: { doctype: props.doctype, diff --git a/frontend/src/components/Settings/SidePanelLayoutBuilder.vue b/frontend/src/components/Settings/SidePanelLayoutBuilder.vue index af9c520c1..d7dad93b3 100644 --- a/frontend/src/components/Settings/SidePanelLayoutBuilder.vue +++ b/frontend/src/components/Settings/SidePanelLayoutBuilder.vue @@ -165,7 +165,7 @@ const params = computed(() => { }) const fields = createResource({ - url: 'crm.api.doc.get_fields_meta', + url: 'next_crm.api.doc.get_fields_meta', params: params.value, cache: ['fieldsMeta', props.doctype], auto: true, diff --git a/frontend/src/components/Settings/SidePanelModal.vue b/frontend/src/components/Settings/SidePanelModal.vue index b609a6310..3adf222da 100644 --- a/frontend/src/components/Settings/SidePanelModal.vue +++ b/frontend/src/components/Settings/SidePanelModal.vue @@ -103,7 +103,7 @@ function getParams() { } const sections = createResource({ - url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', + url: 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.get_fields_layout', cache: ['sidebar-sections', _doctype.value], params: getParams(), onSuccess(data) { @@ -139,7 +139,7 @@ function saveChanges() { }) loading.value = true call( - 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.save_fields_layout', + 'next_crm.ncrm.doctype.crm_fields_layout.crm_fields_layout.save_fields_layout', { doctype: _doctype.value, type: 'Side Panel', diff --git a/frontend/src/components/SortBy.vue b/frontend/src/components/SortBy.vue index e5817067f..313d512f5 100644 --- a/frontend/src/components/SortBy.vue +++ b/frontend/src/components/SortBy.vue @@ -191,7 +191,7 @@ const emit = defineEmits(['update']) const list = defineModel() const sortOptions = createResource({ - url: 'crm.api.doc.sort_options', + url: 'next_crm.api.doc.sort_options', cache: ['sortOptions', props.doctype], params: { doctype: props.doctype, diff --git a/frontend/src/components/UserDropdown.vue b/frontend/src/components/UserDropdown.vue index cf5bf2636..775acfb91 100644 --- a/frontend/src/components/UserDropdown.vue +++ b/frontend/src/components/UserDropdown.vue @@ -21,7 +21,7 @@ " >
- {{ __('CRM') }} + {{ __('Next CRM') }}
{{ user.full_name }} @@ -81,7 +81,7 @@ let dropdownOptions = ref([ { icon: 'life-buoy', label: computed(() => __('Support')), - onClick: () => window.open('https://t.me/frappecrm', '_blank'), + onClick: () => window.open('https://github.com/rtCamp/next-crm', '_blank'), }, { icon: 'book-open', diff --git a/frontend/src/components/ViewControls.vue b/frontend/src/components/ViewControls.vue index eac266114..edaf57843 100644 --- a/frontend/src/components/ViewControls.vue +++ b/frontend/src/components/ViewControls.vue @@ -415,7 +415,7 @@ function getParams() { } list.value = createResource({ - url: 'crm.api.doc.get_data', + url: 'next_crm.api.doc.get_data', params: getParams(), cache: [props.doctype, route.query.view, route.params.viewType], onSuccess(data) { @@ -615,7 +615,7 @@ const quickFilterList = computed(() => { }) const quickFilters = createResource({ - url: 'crm.api.doc.get_quick_filters', + url: 'next_crm.api.doc.get_quick_filters', params: { doctype: props.doctype }, cache: ['Quick Filters', props.doctype], auto: true, @@ -802,7 +802,7 @@ function create_or_update_default_view() { if (route.query.view) return view.value.doctype = props.doctype call( - 'crm.fcrm.doctype.crm_view_settings.crm_view_settings.create_or_update_default_view', + 'next_crm.ncrm.doctype.crm_view_settings.crm_view_settings.create_or_update_default_view', { view: view.value, }, @@ -849,7 +849,7 @@ function update_custom_view() { route_name: route.name, load_default_columns: view.value.load_default_columns, } - call('crm.fcrm.doctype.crm_view_settings.crm_view_settings.update', { + call('next_crm.ncrm.doctype.crm_view_settings.crm_view_settings.update', { view: view.value, }).then(() => reloadView()) } @@ -974,7 +974,7 @@ function editView(v) { } function publicView(v) { - call('crm.fcrm.doctype.crm_view_settings.crm_view_settings.public', { + call('next_crm.ncrm.doctype.crm_view_settings.crm_view_settings.public', { name: v.name, value: !v.public, }).then(() => { @@ -985,7 +985,7 @@ function publicView(v) { } function pinView(v) { - call('crm.fcrm.doctype.crm_view_settings.crm_view_settings.pin', { + call('next_crm.ncrm.doctype.crm_view_settings.crm_view_settings.pin', { name: v.name, value: !v.pinned, }).then(() => { @@ -996,7 +996,7 @@ function pinView(v) { } function deleteView(v, close) { - call('crm.fcrm.doctype.crm_view_settings.crm_view_settings.delete', { + call('next_crm.ncrm.doctype.crm_view_settings.crm_view_settings.delete', { name: v.name, }).then(() => { router.push({ name: route.name }) diff --git a/frontend/src/main.js b/frontend/src/main.js index b375dee93..57db6e3fa 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -55,7 +55,7 @@ app.config.globalProperties.$dialog = createDialog let socket if (import.meta.env.DEV) { - frappeRequest({ url: '/api/method/crm.www.crm.get_context_for_dev' }).then( + frappeRequest({ url: '/api/method/next_crm.www.crm.get_context_for_dev' }).then( (values) => { for (let key in values) { window[key] = values[key] diff --git a/frontend/src/pages/Contact.vue b/frontend/src/pages/Contact.vue index e0f8faeea..7f9310792 100644 --- a/frontend/src/pages/Contact.vue +++ b/frontend/src/pages/Contact.vue @@ -259,7 +259,7 @@ const _contact = ref({}) const _address = ref({}) const contact = createResource({ - url: 'crm.api.contact.get_contact', + url: 'next_crm.api.contact.get_contact', cache: ['contact', props.contactId], params: { name: props.contactId, @@ -354,7 +354,7 @@ const tabs = [ ] const opportunities = createResource({ - url: 'crm.api.contact.get_linked_opportunities', + url: 'next_crm.api.contact.get_linked_opportunities', cache: ['opportunities', props.contactId], params: { contact: props.contactId, @@ -369,7 +369,7 @@ const rows = computed(() => { }) const fieldsLayout = createResource({ - url: 'crm.api.doc.get_sidebar_fields', + url: 'next_crm.api.doc.get_sidebar_fields', cache: ['fieldsLayout', props.contactId], params: { doctype: 'Contact', name: props.contactId }, auto: true, @@ -524,7 +524,7 @@ function getParsedFields(data) { } async function setAsPrimary(field, value) { - let d = await call('crm.api.contact.set_as_primary', { + let d = await call('next_crm.api.contact.set_as_primary', { contact: contact.data.name, field, value, @@ -541,7 +541,7 @@ async function setAsPrimary(field, value) { async function createNew(field, value) { if (!value) return - let d = await call('crm.api.contact.create_new', { + let d = await call('next_crm.api.contact.create_new', { contact: contact.data.name, field, value, diff --git a/frontend/src/pages/Customer.vue b/frontend/src/pages/Customer.vue index a6614f651..4d0bbb2d8 100644 --- a/frontend/src/pages/Customer.vue +++ b/frontend/src/pages/Customer.vue @@ -369,7 +369,7 @@ const _customer = ref({}) const _address = ref({}) const fieldsLayout = createResource({ - url: 'crm.api.doc.get_sidebar_fields', + url: 'next_crm.api.doc.get_sidebar_fields', cache: ['fieldsLayout', props.customerId], params: { doctype: 'Customer', name: props.customerId }, auto: true, diff --git a/frontend/src/pages/Lead.vue b/frontend/src/pages/Lead.vue index 683d4d3d7..29df7f816 100644 --- a/frontend/src/pages/Lead.vue +++ b/frontend/src/pages/Lead.vue @@ -368,7 +368,7 @@ const customActions = ref([]) const customStatuses = ref([]) const lead = createResource({ - url: '/api/method/crm.api.lead.get_lead', + url: '/api/method/next_crm.api.lead.get_lead', params: { name: props.leadId }, cache: ['lead', props.leadId], onSuccess: async (data) => { @@ -552,7 +552,7 @@ function validateFile(file) { } const fieldsLayout = createResource({ - url: 'crm.api.doc.get_sidebar_fields', + url: 'next_crm.api.doc.get_sidebar_fields', cache: ['fieldsLayout', props.leadId], params: { doctype: 'Lead', name: props.leadId }, auto: true, @@ -636,7 +636,7 @@ async function convertToOpportunity(updated) { showConvertToOpportunityModal.value = false } else { let opportunity = await call( - 'crm.overrides.lead.convert_to_opportunity', + 'next_crm.overrides.lead.convert_to_opportunity', { lead: lead.data.name, }, diff --git a/frontend/src/pages/MobileContact.vue b/frontend/src/pages/MobileContact.vue index 04e9ea922..ed14d7de9 100644 --- a/frontend/src/pages/MobileContact.vue +++ b/frontend/src/pages/MobileContact.vue @@ -233,7 +233,7 @@ const _contact = ref({}) const _address = ref({}) const contact = createResource({ - url: 'crm.api.contact.get_contact', + url: 'next_crm.api.contact.get_contact', cache: ['contact', props.contactId], params: { name: props.contactId, @@ -334,7 +334,7 @@ const tabs = [ ] const opportunities = createResource({ - url: 'crm.api.contact.get_linked_opportunities', + url: 'next_crm.api.contact.get_linked_opportunities', cache: ['opportunities', props.contactId], params: { contact: props.contactId, @@ -349,7 +349,7 @@ const rows = computed(() => { }) const fieldsLayout = createResource({ - url: 'crm.api.doc.get_sidebar_fields', + url: 'next_crm.api.doc.get_sidebar_fields', cache: ['fieldsLayout', props.contactId], params: { doctype: 'Contact', name: props.contactId }, auto: true, @@ -504,7 +504,7 @@ function getParsedFields(data) { } async function setAsPrimary(field, value) { - let d = await call('crm.api.contact.set_as_primary', { + let d = await call('next_crm.api.contact.set_as_primary', { contact: contact.data.name, field, value, @@ -521,7 +521,7 @@ async function setAsPrimary(field, value) { async function createNew(field, value) { if (!value) return - let d = await call('crm.api.contact.create_new', { + let d = await call('next_crm.api.contact.create_new', { contact: contact.data.name, field, value, diff --git a/frontend/src/pages/MobileCustomer.vue b/frontend/src/pages/MobileCustomer.vue index f6e639c8d..a32460343 100644 --- a/frontend/src/pages/MobileCustomer.vue +++ b/frontend/src/pages/MobileCustomer.vue @@ -327,7 +327,7 @@ const _customer = ref({}) const _address = ref({}) const fieldsLayout = createResource({ - url: 'crm.api.doc.get_sidebar_fields', + url: 'next_crm.api.doc.get_sidebar_fields', cache: ['fieldsLayout', props.customerId], params: { doctype: 'Customer', name: props.customerId }, auto: true, diff --git a/frontend/src/pages/MobileLead.vue b/frontend/src/pages/MobileLead.vue index cd30c9a03..9fd253d40 100644 --- a/frontend/src/pages/MobileLead.vue +++ b/frontend/src/pages/MobileLead.vue @@ -232,7 +232,7 @@ const customActions = ref([]) const customStatuses = ref([]) const lead = createResource({ - url: '/api/method/crm.api.lead.get_lead', + url: '/api/method/next_crm.api.lead.get_lead', params: { name: props.leadId }, cache: ['lead', props.leadId], onSuccess: async (data) => { @@ -406,7 +406,7 @@ watch(tabs, (value) => { }) const fieldsLayout = createResource({ - url: 'crm.api.doc.get_sidebar_fields', + url: 'next_crm.api.doc.get_sidebar_fields', cache: ['fieldsLayout', props.leadId], params: { doctype: 'Lead', name: props.leadId }, auto: true, @@ -490,7 +490,7 @@ async function convertToOpportunity(updated) { showConvertToOpportunityModal.value = false } else { let opportunity = await call( - 'crm.overrides.lead.convert_to_opportunity', + 'next_crm.overrides.lead.convert_to_opportunity', { lead: lead.data.name, }, diff --git a/frontend/src/pages/MobileOpportunoty.vue b/frontend/src/pages/MobileOpportunoty.vue index 117830c9a..02b56e691 100644 --- a/frontend/src/pages/MobileOpportunoty.vue +++ b/frontend/src/pages/MobileOpportunoty.vue @@ -307,7 +307,7 @@ const customActions = ref([]) const customStatuses = ref([]) const opportunity = createResource({ - url: '/api/method/crm.api.opportunity.get_opportunity', + url: '/api/method/next_crm.api.opportunity.get_opportunity', params: { name: props.opportunityId }, cache: ['opportunity', props.opportunityId], onSuccess: async (data) => { @@ -485,7 +485,7 @@ const tabs = computed(() => { const { tabIndex } = useActiveTabManager(tabs, 'lastOpportunityTab') const fieldsLayout = createResource({ - url: 'crm.api.doc.get_sidebar_fields', + url: 'next_crm.api.doc.get_sidebar_fields', cache: ['fieldsLayout', props.opportunityId], params: { doctype: 'Opportunity', name: props.opportunityId }, auto: true, @@ -537,7 +537,7 @@ function contactOptions(contact) { } async function addContact(contact) { - let d = await call('crm.overrides.opportunity.add_contact', { + let d = await call('next_crm.overrides.opportunity.add_contact', { opportunity: props.opportunityId, contact, }) @@ -552,7 +552,7 @@ async function addContact(contact) { } async function removeContact(contact) { - let d = await call('crm.overrides.opportunity.remove_contact', { + let d = await call('next_crm.overrides.opportunity.remove_contact', { opportunity: props.opportunityId, contact, }) @@ -567,7 +567,7 @@ async function removeContact(contact) { } async function setPrimaryContact(contact) { - let d = await call('crm.overrides.opportunity.set_primary_contact', { + let d = await call('next_crm.overrides.opportunity.set_primary_contact', { opportunity: props.opportunityId, contact, }) @@ -582,7 +582,7 @@ async function setPrimaryContact(contact) { } const opportunityContacts = createResource({ - url: '/api/method/crm.api.opportunity.get_opportunity_contacts', + url: '/api/method/next_crm.api.opportunity.get_opportunity_contacts', params: { name: props.opportunityId }, cache: ['opportunity_contacts', props.opportunityId], auto: true, diff --git a/frontend/src/pages/Notes.vue b/frontend/src/pages/Notes.vue index 494f741f1..80e33c91f 100644 --- a/frontend/src/pages/Notes.vue +++ b/frontend/src/pages/Notes.vue @@ -14,7 +14,7 @@ v-model="notes" v-model:loadMore="loadMore" v-model:updatedPageCount="updatedPageCount" - doctype="FCRM Note" + doctype="NCRM Note" :options="{ hideColumnsButton: true, defaultViewName: __('Notes View'), @@ -147,7 +147,7 @@ function editNote(note) { async function deleteNote(name) { await call('frappe.client.delete', { - doctype: 'FCRM Note', + doctype: 'NCRM Note', name, }) notes.value.reload() diff --git a/frontend/src/pages/Opportunity.vue b/frontend/src/pages/Opportunity.vue index cf128de32..b26c8c8b2 100644 --- a/frontend/src/pages/Opportunity.vue +++ b/frontend/src/pages/Opportunity.vue @@ -392,7 +392,7 @@ const customActions = ref([]) const customStatuses = ref([]) const opportunity = createResource({ - url: '/api/method/crm.api.opportunity.get_opportunity', + url: '/api/method/next_crm.api.opportunity.get_opportunity', params: { name: props.opportunityId }, cache: ['opportunity', props.opportunityId], onSuccess: async (data) => { @@ -587,7 +587,7 @@ const tabs = computed(() => { const { tabIndex } = useActiveTabManager(tabs, 'lastOpportunityTab') const fieldsLayout = createResource({ - url: 'crm.api.doc.get_sidebar_fields', + url: 'next_crm.api.doc.get_sidebar_fields', cache: ['fieldsLayout', props.opportunityId], params: { doctype: 'Opportunity', name: props.opportunityId }, auto: true, @@ -639,7 +639,7 @@ function contactOptions(contact) { } async function addContact(contact) { - let d = await call('crm.overrides.opportunity.add_contact', { + let d = await call('next_crm.overrides.opportunity.add_contact', { opportunity: props.opportunityId, contact, }) @@ -654,7 +654,7 @@ async function addContact(contact) { } async function removeContact(contact) { - let d = await call('crm.overrides.opportunity.remove_contact', { + let d = await call('next_crm.overrides.opportunity.remove_contact', { opportunity: props.opportunityId, contact, }) @@ -669,7 +669,7 @@ async function removeContact(contact) { } async function setPrimaryContact(contact) { - let d = await call('crm.overrides.opportunity.set_primary_contact', { + let d = await call('next_crm.overrides.opportunity.set_primary_contact', { opportunity: props.opportunityId, contact, }) @@ -684,7 +684,7 @@ async function setPrimaryContact(contact) { } const opportunityContacts = createResource({ - url: '/api/method/crm.api.opportunity.get_opportunity_contacts', + url: '/api/method/next_crm.api.opportunity.get_opportunity_contacts', params: { name: props.opportunityId }, cache: ['opportunity_contacts', props.opportunityId], auto: true, diff --git a/frontend/src/router.js b/frontend/src/router.js index ef76fec10..a4d685dfb 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -128,7 +128,7 @@ const scrollBehavior = (to, from, savedPosition) => { } let router = createRouter({ - history: createWebHistory('/crm'), + history: createWebHistory('/next-crm'), routes, scrollBehavior, }) @@ -145,7 +145,7 @@ router.beforeEach(async (to, from, next) => { if (to.name === 'Home' && isLoggedIn) { next({ name: 'Leads' }) } else if (!isLoggedIn) { - window.location.href = '/login?redirect-to=/crm' + window.location.href = '/login?redirect-to=/next-crm' } else if (to.matched.length === 0) { next({ name: 'Invalid Page' }) } else if (['Opportunity', 'Lead'].includes(to.name) && !to.hash) { diff --git a/frontend/src/telemetry.ts b/frontend/src/telemetry.ts index c7c93acdb..5aa5ed705 100644 --- a/frontend/src/telemetry.ts +++ b/frontend/src/telemetry.ts @@ -23,7 +23,7 @@ let posthog: typeof window.posthog = window.posthog // Posthog Settings let posthogSettings = createResource({ - url: 'crm.api.get_posthog_settings', + url: 'next_crm.api.get_posthog_settings', cache: 'posthog_settings', onSuccess: (ps: PosthogSettings) => initPosthog(ps), }) diff --git a/frontend/src/translation.js b/frontend/src/translation.js index 3c2819e25..e7dfc1d42 100644 --- a/frontend/src/translation.js +++ b/frontend/src/translation.js @@ -37,7 +37,7 @@ function translate(message, replace, context = null) { function fetchTranslations(lang) { createResource({ - url: 'crm.api.get_translations', + url: 'next_crm.api.get_translations', cache: 'translations', auto: true, transform: (data) => { diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 292f13fe0..0e6f74da4 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -22,32 +22,32 @@ export default defineConfig({ }, manifest: { display: 'standalone', - name: 'Frappe CRM', - short_name: 'Frappe CRM', - start_url: '/crm', + name: 'Next CRM', + short_name: 'Next CRM', + start_url: '/next-crm', description: 'Modern & 100% Open-source CRM tool to supercharge your sales operations', icons: [ { - src: '/assets/crm/manifest/manifest-icon-192.maskable.png', + src: '/assets/next_crm/manifest/manifest-icon-192.maskable.png', sizes: '192x192', type: 'image/png', purpose: 'any', }, { - src: '/assets/crm/manifest/manifest-icon-192.maskable.png', + src: '/assets/next_crm/manifest/manifest-icon-192.maskable.png', sizes: '192x192', type: 'image/png', purpose: 'maskable', }, { - src: '/assets/crm/manifest/manifest-icon-512.maskable.png', + src: '/assets/next_crm/manifest/manifest-icon-512.maskable.png', sizes: '512x512', type: 'image/png', purpose: 'any', }, { - src: '/assets/crm/manifest/manifest-icon-512.maskable.png', + src: '/assets/next_crm/manifest/manifest-icon-512.maskable.png', sizes: '512x512', type: 'image/png', purpose: 'maskable', @@ -81,7 +81,7 @@ export default defineConfig({ }, }, build: { - outDir: '../crm/public/frontend', + outDir: '../next_crm/public/frontend', emptyOutDir: true, commonjsOptions: { include: [/tailwind.config.js/, /node_modules/], diff --git a/crm/__init__.py b/next_crm/__init__.py similarity index 52% rename from crm/__init__.py rename to next_crm/__init__.py index 3af1df468..38476c053 100644 --- a/crm/__init__.py +++ b/next_crm/__init__.py @@ -1,4 +1,4 @@ __version__ = "2.0.0-dev" -__title__ = "Frappe CRM" +__title__ = "Next CRM" diff --git a/crm/api/__init__.py b/next_crm/api/__init__.py similarity index 98% rename from crm/api/__init__.py rename to next_crm/api/__init__.py index 58739de0d..0545149d3 100644 --- a/crm/api/__init__.py +++ b/next_crm/api/__init__.py @@ -86,7 +86,7 @@ def accept_invitation(key: str = None): if invitation.status == "Accepted": frappe.local.login_manager.login_as(invitation.email) frappe.local.response["type"] = "redirect" - frappe.local.response["location"] = "/crm" + frappe.local.response["location"] = "/next-crm" @frappe.whitelist() diff --git a/crm/api/activities.py b/next_crm/api/activities.py similarity index 99% rename from crm/api/activities.py rename to next_crm/api/activities.py index 5b1d61248..b3bb1a577 100644 --- a/crm/api/activities.py +++ b/next_crm/api/activities.py @@ -346,7 +346,7 @@ def get_linked_calls(name): def get_linked_notes(name): notes = frappe.db.get_all( - "FCRM Note", + "NCRM Note", filters={"reference_docname": name}, fields=['name', 'title', 'content', 'owner', 'modified'], ) diff --git a/crm/api/auth.py b/next_crm/api/auth.py similarity index 93% rename from crm/api/auth.py rename to next_crm/api/auth.py index d485ccc12..8b3a0e5fd 100644 --- a/crm/api/auth.py +++ b/next_crm/api/auth.py @@ -31,7 +31,7 @@ def oauth_providers(): { "name": provider.name, "provider_name": provider.provider_name, - "auth_url": get_oauth2_authorize_url(provider.name, "/crm"), + "auth_url": get_oauth2_authorize_url(provider.name, "/next-crm"), "icon": icon, } ) diff --git a/crm/api/comment.py b/next_crm/api/comment.py similarity index 97% rename from crm/api/comment.py rename to next_crm/api/comment.py index a51c561ed..bf6052ddc 100644 --- a/crm/api/comment.py +++ b/next_crm/api/comment.py @@ -3,7 +3,7 @@ import frappe from frappe import _ from bs4 import BeautifulSoup -from crm.fcrm.doctype.crm_notification.crm_notification import notify_user +from next_crm.ncrm.doctype.crm_notification.crm_notification import notify_user def on_update(self, method): notify_mentions(self) diff --git a/crm/api/contact.py b/next_crm/api/contact.py similarity index 100% rename from crm/api/contact.py rename to next_crm/api/contact.py diff --git a/crm/api/demo.py b/next_crm/api/demo.py similarity index 95% rename from crm/api/demo.py rename to next_crm/api/demo.py index 1ac27b7ff..a74df025f 100644 --- a/crm/api/demo.py +++ b/next_crm/api/demo.py @@ -7,7 +7,7 @@ def login(): if not frappe.conf.demo_username or not frappe.conf.demo_password: return - frappe.local.response["redirect_to"] = "/crm" + frappe.local.response["redirect_to"] = "/next-crm" login_manager = LoginManager() login_manager.authenticate(frappe.conf.demo_username, frappe.conf.demo_password) login_manager.post_login() diff --git a/crm/api/doc.py b/next_crm/api/doc.py similarity index 99% rename from crm/api/doc.py rename to next_crm/api/doc.py index 58db1e2f9..c7de39648 100644 --- a/crm/api/doc.py +++ b/next_crm/api/doc.py @@ -6,8 +6,8 @@ from pypika import Criterion from frappe.utils import make_filter_tuple -from crm.api.views import get_views -from crm.fcrm.doctype.crm_form_script.crm_form_script import get_form_script +from next_crm.api.views import get_views +from next_crm.ncrm.doctype.crm_form_script.crm_form_script import get_form_script @frappe.whitelist() @@ -698,5 +698,5 @@ def getCounts(d, doctype): d["_email_count"] = d["_email_count"] + frappe.db.count("Communication", filters={"reference_doctype": doctype, "reference_name": d.get("name"), "communication_type": "Automated Message"}) d["_comment_count"] = frappe.db.count("Comment", filters={"reference_doctype": doctype, "reference_name": d.get("name"), "comment_type": "Comment"}) d["_task_count"] = frappe.db.count("CRM Task", filters={"reference_doctype": doctype, "reference_docname": d.get("name")}) - d["_note_count"] = frappe.db.count("FCRM Note", filters={"reference_doctype": doctype, "reference_docname": d.get("name")}) + d["_note_count"] = frappe.db.count("NCRM Note", filters={"reference_doctype": doctype, "reference_docname": d.get("name")}) return d \ No newline at end of file diff --git a/crm/api/lead.py b/next_crm/api/lead.py similarity index 78% rename from crm/api/lead.py rename to next_crm/api/lead.py index cd10165c8..d4314013b 100644 --- a/crm/api/lead.py +++ b/next_crm/api/lead.py @@ -1,8 +1,8 @@ import frappe from frappe import _ -from crm.api.doc import get_fields_meta, get_assigned_users -from crm.fcrm.doctype.crm_form_script.crm_form_script import get_form_script +from next_crm.api.doc import get_fields_meta, get_assigned_users +from next_crm.ncrm.doctype.crm_form_script.crm_form_script import get_form_script @frappe.whitelist() def get_lead(name): diff --git a/crm/api/notifications.py b/next_crm/api/notifications.py similarity index 100% rename from crm/api/notifications.py rename to next_crm/api/notifications.py diff --git a/crm/api/opportunity.py b/next_crm/api/opportunity.py similarity index 92% rename from crm/api/opportunity.py rename to next_crm/api/opportunity.py index 23bd442f1..57f35dd02 100644 --- a/crm/api/opportunity.py +++ b/next_crm/api/opportunity.py @@ -1,8 +1,8 @@ import frappe from frappe import _ -from crm.api.doc import get_fields_meta, get_assigned_users -from crm.fcrm.doctype.crm_form_script.crm_form_script import get_form_script +from next_crm.api.doc import get_fields_meta, get_assigned_users +from next_crm.ncrm.doctype.crm_form_script.crm_form_script import get_form_script @frappe.whitelist() def get_opportunity(name): diff --git a/crm/api/session.py b/next_crm/api/session.py similarity index 100% rename from crm/api/session.py rename to next_crm/api/session.py diff --git a/crm/api/todo.py b/next_crm/api/todo.py similarity index 97% rename from crm/api/todo.py rename to next_crm/api/todo.py index 1b549ea05..d0f02fbdb 100644 --- a/crm/api/todo.py +++ b/next_crm/api/todo.py @@ -1,6 +1,6 @@ import frappe from frappe import _ -from crm.fcrm.doctype.crm_notification.crm_notification import notify_user +from next_crm.ncrm.doctype.crm_notification.crm_notification import notify_user def after_insert(doc, method): if doc.reference_type in ["Lead", "Opportunity"] and doc.reference_name and doc.allocated_to: diff --git a/crm/api/views.py b/next_crm/api/views.py similarity index 100% rename from crm/api/views.py rename to next_crm/api/views.py diff --git a/crm/api/whatsapp.py b/next_crm/api/whatsapp.py similarity index 98% rename from crm/api/whatsapp.py rename to next_crm/api/whatsapp.py index 10c5bc2ef..f85ccd919 100644 --- a/crm/api/whatsapp.py +++ b/next_crm/api/whatsapp.py @@ -1,8 +1,8 @@ import frappe import json from frappe import _ -from crm.api.doc import get_assigned_users -from crm.fcrm.doctype.crm_notification.crm_notification import notify_user +from next_crm.api.doc import get_assigned_users +from next_crm.ncrm.doctype.crm_notification.crm_notification import notify_user def validate(doc, method): diff --git a/crm/config/__init__.py b/next_crm/config/__init__.py similarity index 100% rename from crm/config/__init__.py rename to next_crm/config/__init__.py diff --git a/crm/fixtures/custom_field.json b/next_crm/fixtures/custom_field.json similarity index 98% rename from crm/fixtures/custom_field.json rename to next_crm/fixtures/custom_field.json index a80a28679..a58d7f00c 100644 --- a/crm/fixtures/custom_field.json +++ b/next_crm/fixtures/custom_field.json @@ -33,7 +33,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.354891", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-customer", "no_copy": 0, "non_negative": 0, @@ -87,7 +87,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 21:50:26.889170", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-lead", "no_copy": 0, "non_negative": 0, @@ -141,7 +141,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-12 01:30:26.057257", - "module": "FCRM", + "module": "NCRM", "name": "Customer-annual_revenue", "no_copy": 0, "non_negative": 0, @@ -195,7 +195,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-12 01:30:25.946544", - "module": "FCRM", + "module": "NCRM", "name": "Customer-no_of_employees", "no_copy": 0, "non_negative": 0, @@ -249,7 +249,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:14.900466", - "module": "FCRM", + "module": "NCRM", "name": "Lead-converted", "no_copy": 0, "non_negative": 0, @@ -303,7 +303,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.405917", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-section_break_smtga", "no_copy": 0, "non_negative": 0, @@ -357,7 +357,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.458741", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-contacts", "no_copy": 0, "non_negative": 0, @@ -411,7 +411,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.470816", - "module": "FCRM", + "module": "NCRM", "name": "Lead-sla_tab", "no_copy": 0, "non_negative": 0, @@ -465,7 +465,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.418286", - "module": "FCRM", + "module": "NCRM", "name": "Lead-sla", "no_copy": 0, "non_negative": 0, @@ -519,7 +519,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.363291", - "module": "FCRM", + "module": "NCRM", "name": "Lead-sla_creation", "no_copy": 0, "non_negative": 0, @@ -573,7 +573,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.311180", - "module": "FCRM", + "module": "NCRM", "name": "Lead-column_break_xyyrk", "no_copy": 0, "non_negative": 0, @@ -627,7 +627,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.257030", - "module": "FCRM", + "module": "NCRM", "name": "Lead-sla_status", "no_copy": 0, "non_negative": 0, @@ -681,7 +681,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.200895", - "module": "FCRM", + "module": "NCRM", "name": "Lead-communication_status", "no_copy": 0, "non_negative": 0, @@ -735,7 +735,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.141724", - "module": "FCRM", + "module": "NCRM", "name": "Lead-response_details", "no_copy": 0, "non_negative": 0, @@ -789,7 +789,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.705295", - "module": "FCRM", + "module": "NCRM", "name": "Lead-response_by", "no_copy": 0, "non_negative": 0, @@ -843,7 +843,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.650153", - "module": "FCRM", + "module": "NCRM", "name": "Lead-column_break_joptq", "no_copy": 0, "non_negative": 0, @@ -897,7 +897,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.587420", - "module": "FCRM", + "module": "NCRM", "name": "Lead-first_response_time", "no_copy": 0, "non_negative": 0, @@ -951,7 +951,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-07 16:26:15.526399", - "module": "FCRM", + "module": "NCRM", "name": "Lead-first_responded_on", "no_copy": 0, "non_negative": 0, @@ -1005,7 +1005,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-13 00:02:24.878678", - "module": "FCRM", + "module": "NCRM", "name": "Lead-log", "no_copy": 0, "non_negative": 0, @@ -1059,7 +1059,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-13 00:02:24.751266", - "module": "FCRM", + "module": "NCRM", "name": "Lead-status_change_log", "no_copy": 0, "non_negative": 0, @@ -1113,7 +1113,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.668859", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-sla_tab", "no_copy": 0, "non_negative": 0, @@ -1167,7 +1167,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.721346", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-sla", "no_copy": 0, "non_negative": 0, @@ -1221,7 +1221,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.774453", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-sla_creation", "no_copy": 0, "non_negative": 0, @@ -1275,7 +1275,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.832196", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-column_break_xyyrk", "no_copy": 0, "non_negative": 0, @@ -1329,7 +1329,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.884238", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-sla_status", "no_copy": 0, "non_negative": 0, @@ -1383,7 +1383,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.936053", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-communication_status", "no_copy": 0, "non_negative": 0, @@ -1437,7 +1437,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.990054", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-response_details", "no_copy": 0, "non_negative": 0, @@ -1491,7 +1491,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.511273", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-response_by", "no_copy": 0, "non_negative": 0, @@ -1545,7 +1545,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.563966", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-column_break_joptq", "no_copy": 0, "non_negative": 0, @@ -1599,7 +1599,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2024-11-11 20:16:14.615565", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-first_responded_on", "no_copy": 0, "non_negative": 0, diff --git a/crm/fixtures/property_setter.json b/next_crm/fixtures/property_setter.json similarity index 94% rename from crm/fixtures/property_setter.json rename to next_crm/fixtures/property_setter.json index 3dce54b5f..6c4298fe3 100644 --- a/crm/fixtures/property_setter.json +++ b/next_crm/fixtures/property_setter.json @@ -8,7 +8,7 @@ "field_name": "status", "is_system_generated": 0, "modified": "2024-11-11 20:33:10.084260", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-status-options", "property": "options", "property_type": "Text", @@ -24,7 +24,7 @@ "field_name": "status", "is_system_generated": 0, "modified": "2024-11-11 20:33:10.075651", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-status-fieldtype", "property": "fieldtype", "property_type": "Select", @@ -40,7 +40,7 @@ "field_name": "status", "is_system_generated": 0, "modified": "2024-11-07 16:23:36.279752", - "module": "FCRM", + "module": "NCRM", "name": "Lead-status-options", "property": "options", "property_type": "Text", @@ -56,7 +56,7 @@ "field_name": "status", "is_system_generated": 0, "modified": "2024-11-07 16:23:48.881723", - "module": "FCRM", + "module": "NCRM", "name": "Lead-status-fieldtype", "property": "fieldtype", "property_type": "Select", @@ -72,7 +72,7 @@ "field_name": "opportunity_from", "is_system_generated": 0, "modified": "2024-11-11 21:44:40.958746", - "module": "FCRM", + "module": "NCRM", "name": "Opportunity-opportunity_from-default", "property": "default", "property_type": "Text", diff --git a/crm/hooks.py b/next_crm/hooks.py similarity index 58% rename from crm/hooks.py rename to next_crm/hooks.py index 89098f55d..e7342e378 100644 --- a/crm/hooks.py +++ b/next_crm/hooks.py @@ -1,12 +1,12 @@ -app_name = "crm" -app_title = "Frappe CRM" -app_publisher = "Frappe Technologies Pvt. Ltd." +app_name = "next_crm" +app_title = "Next CRM" +app_publisher = "rtCamp" app_description = "Kick-ass Open Source CRM" -app_email = "shariq@frappe.io" -app_license = "AGPLv3" -app_icon_url = "/assets/crm/images/logo.svg" -app_icon_title = "CRM" -app_icon_route = "/crm" +app_email = "erp@rtcamp.com" +app_license = "GNU AFFERO GENERAL PUBLIC LICENSE (v3)" +app_icon_url = "/assets/next_crm/images/logo.svg" +app_icon_title = "Next CRM" +app_icon_route = "/next-crm" # Apps # ------------------ @@ -14,11 +14,11 @@ # required_apps = [] add_to_apps_screen = [ { - "name": "crm", - "logo": "/assets/crm/images/logo.svg", - "title": "CRM", - "route": "/crm", - "has_permission": "crm.api.check_app_permission", + "name": "next_crm", + "logo": "/assets/next_crm/images/logo.svg", + "title": "Next CRM", + "route": "/next-crm", + "has_permission": "next_crm.api.check_app_permission", } ] @@ -26,15 +26,15 @@ # ------------------ # include js, css files in header of desk.html -# app_include_css = "/assets/crm/css/crm.css" -# app_include_js = "/assets/crm/js/crm.js" +# app_include_css = "/assetsnext_crm/css/next_crm.css" +# app_include_js = "/assetsnext_crm/js/next_crm.js" # include js, css files in header of web template -# web_include_css = "/assets/crm/css/crm.css" -# web_include_js = "/assets/crm/js/crm.js" +# web_include_css = "/assetsnext_crm/css/next_crm.css" +# web_include_js = "/assetsnext_crm/js/next_crm.js" # include custom scss in every website theme (without file extension ".scss") -# website_theme_scss = "crm/public/scss/website" +# website_theme_scss = next_crm/public/scss/website" # include js, css files in header of web form # webform_include_js = {"doctype": "public/js/doctype.js"} @@ -64,7 +64,7 @@ # } website_route_rules = [ - {"from_route": "/crm/", "to_route": "crm"}, + {"from_route": "/next-crm/", "to_route": "next-crm"}, ] # Generators @@ -78,43 +78,43 @@ # add methods and filters to jinja environment # jinja = { -# "methods": "crm.utils.jinja_methods", -# "filters": "crm.utils.jinja_filters" +# "methods": "next_crm.utils.jinja_methods", +# "filters": "next_crm.utils.jinja_filters" # } # Installation # ------------ -before_install = "crm.install.before_install" -after_install = "crm.install.after_install" +before_install = "next_crm.install.before_install" +after_install = "next_crm.install.after_install" # Uninstallation # ------------ -before_uninstall = "crm.uninstall.before_uninstall" -# after_uninstall = "crm.uninstall.after_uninstall" +before_uninstall = "next_crm.uninstall.before_uninstall" +# after_uninstall = "next_crm.uninstall.after_uninstall" # Integration Setup # ------------------ # To set up dependencies/integrations with other apps # Name of the app being installed is passed as an argument -# before_app_install = "crm.utils.before_app_install" -# after_app_install = "crm.utils.after_app_install" +# before_app_install = "next_crm.utils.before_app_install" +# after_app_install = "next_crm.utils.after_app_install" # Integration Cleanup # ------------------- # To clean up dependencies/integrations with other apps # Name of the app being uninstalled is passed as an argument -# before_app_uninstall = "crm.utils.before_app_uninstall" -# after_app_uninstall = "crm.utils.after_app_uninstall" +# before_app_uninstall = "next_crm.utils.before_app_uninstall" +# after_app_uninstall = "next_crm.utils.after_app_uninstall" # Desk Notifications # ------------------ # See frappe.core.notifications.get_notification_config -# notification_config = "crm.notifications.get_notification_config" +# notification_config = "next_crm.notifications.get_notification_config" # Permissions # ----------- @@ -133,13 +133,13 @@ # Override standard doctype classes override_doctype_class = { - "Contact": "crm.overrides.contact.CustomContact", - "Email Template": "crm.overrides.email_template.CustomEmailTemplate", - "User": "crm.overrides.user.CustomUser", - "Customer": "crm.overrides.customer.Customer", - "Lead": "crm.overrides.lead.Lead", - "Customize Form": "crm.overrides.customize_form.CustomizeFormOverride", - "Opportunity": "crm.overrides.opportunity.Opportunity", + "Contact": "next_crm.overrides.contact.CustomContact", + "Email Template": "next_crm.overrides.email_template.CustomEmailTemplate", + "User": "next_crm.overrides.user.CustomUser", + "Customer": "next_crm.overrides.customer.Customer", + "Lead": "next_crm.overrides.lead.Lead", + "Customize Form": "next_crm.overrides.customize_form.CustomizeFormOverride", + "Opportunity": "next_crm.overrides.opportunity.Opportunity", } # Document Events @@ -148,21 +148,21 @@ doc_events = { "Contact": { - "validate": ["crm.api.contact.validate"], + "validate": ["next_crm.api.contact.validate"], }, "ToDo": { - "after_insert": ["crm.api.todo.after_insert"], - "on_update": ["crm.api.todo.on_update"], + "after_insert": ["next_crm.api.todo.after_insert"], + "on_update": ["next_crm.api.todo.on_update"], }, "Comment": { - "on_update": ["crm.api.comment.on_update"], + "on_update": ["next_crm.api.comment.on_update"], }, "WhatsApp Message": { - "validate": ["crm.api.whatsapp.validate"], - "on_update": ["crm.api.whatsapp.on_update"], + "validate": ["next_crm.api.whatsapp.validate"], + "on_update": ["next_crm.api.whatsapp.on_update"], }, "User": { - "before_validate": ["crm.api.demo.validate_user"], + "before_validate": ["next_crm.api.demo.validate_user"], } } @@ -171,39 +171,39 @@ # scheduler_events = { # "all": [ -# "crm.tasks.all" +# "next_crm.tasks.all" # ], # "daily": [ -# "crm.tasks.daily" +# "next_crm.tasks.daily" # ], # "hourly": [ -# "crm.tasks.hourly" +# "next_crm.tasks.hourly" # ], # "weekly": [ -# "crm.tasks.weekly" +# "next_crm.tasks.weekly" # ], # "monthly": [ -# "crm.tasks.monthly" +# "next_crm.tasks.monthly" # ], # } # Testing # ------- -# before_tests = "crm.install.before_tests" +# before_tests = "next_crm.install.before_tests" # Overriding Methods # ------------------------------ # # override_whitelisted_methods = { -# "frappe.desk.doctype.event.event.get_events": "crm.event.get_events" +# "frappe.desk.doctype.event.event.get_events": "next_crm.event.get_events" # } # # each overriding function accepts a `data` argument; # generated from the base implementation of the doctype dashboard, # along with any modifications made in other Frappe apps # override_doctype_dashboards = { -# "Task": "crm.task.get_dashboard_data" +# "Task": "next_crm.task.get_dashboard_data" # } # exempt linked doctypes from being automatically cancelled @@ -217,13 +217,13 @@ # Request Events # ---------------- -# before_request = ["crm.utils.before_request"] -# after_request = ["crm.utils.after_request"] +# before_request = ["next_crm.utils.before_request"] +# after_request = ["next_crm.utils.after_request"] # Job Events # ---------- -# before_job = ["crm.utils.before_job"] -# after_job = ["crm.utils.after_job"] +# before_job = ["next_crm.utils.before_job"] +# after_job = ["next_crm.utils.after_job"] # User Data Protection # -------------------- @@ -253,7 +253,7 @@ # -------------------------------- # auth_hooks = [ -# "crm.auth.validate" +# "next_crm.auth.validate" # ] fixtures = [ @@ -263,7 +263,7 @@ [ "module", "in", - ["FCRM"], + ["NCRM"], ] ], }, @@ -273,7 +273,7 @@ [ "module", "in", - ["FCRM"], + ["NCRM"], ] ], }, diff --git a/crm/install.py b/next_crm/install.py similarity index 100% rename from crm/install.py rename to next_crm/install.py diff --git a/crm/integrations/twilio/api.py b/next_crm/integrations/twilio/api.py similarity index 97% rename from crm/integrations/twilio/api.py rename to next_crm/integrations/twilio/api.py index 7654e6cba..a45ceacf1 100644 --- a/crm/integrations/twilio/api.py +++ b/next_crm/integrations/twilio/api.py @@ -88,8 +88,8 @@ def update_call_log(call_sid, status=None): call_log.start_time = get_datetime_from_timestamp(call_details.start_time) call_log.end_time = get_datetime_from_timestamp(call_details.end_time) if call_log.note and call_log.reference_docname: - frappe.db.set_value("FCRM Note", call_log.note, "reference_doctype", call_log.reference_doctype) - frappe.db.set_value("FCRM Note", call_log.note, "reference_docname", call_log.reference_docname) + frappe.db.set_value("NCRM Note", call_log.note, "reference_doctype", call_log.reference_doctype) + frappe.db.set_value("NCRM Note", call_log.note, "reference_docname", call_log.reference_docname) call_log.flags.ignore_permissions = True call_log.save() frappe.db.commit() diff --git a/crm/integrations/twilio/twilio_handler.py b/next_crm/integrations/twilio/twilio_handler.py similarity index 98% rename from crm/integrations/twilio/twilio_handler.py rename to next_crm/integrations/twilio/twilio_handler.py index bfb36fa4b..d1d61a65f 100644 --- a/crm/integrations/twilio/twilio_handler.py +++ b/next_crm/integrations/twilio/twilio_handler.py @@ -69,11 +69,11 @@ def emailid_from_identity(cls, identity: str): return identity.replace('(at)', '@') def get_recording_status_callback_url(self): - url_path = "/api/method/crm.integrations.twilio.api.update_recording_info" + url_path = "/api/method/next_crm.integrations.twilio.api.update_recording_info" return get_public_url(url_path) def get_update_call_status_callback_url(self): - url_path = "/api/method/crm.integrations.twilio.api.update_call_status_info" + url_path = "/api/method/next_crm.integrations.twilio.api.update_call_status_info" return get_public_url(url_path) def generate_twilio_dial_response(self, from_number: str, to_number: str): diff --git a/crm/integrations/twilio/utils.py b/next_crm/integrations/twilio/utils.py similarity index 100% rename from crm/integrations/twilio/utils.py rename to next_crm/integrations/twilio/utils.py diff --git a/next_crm/modules.txt b/next_crm/modules.txt new file mode 100644 index 000000000..d7c447802 --- /dev/null +++ b/next_crm/modules.txt @@ -0,0 +1 @@ +NCRM \ No newline at end of file diff --git a/crm/fcrm/__init__.py b/next_crm/ncrm/__init__.py similarity index 100% rename from crm/fcrm/__init__.py rename to next_crm/ncrm/__init__.py diff --git a/crm/fcrm/doctype/__init__.py b/next_crm/ncrm/doctype/__init__.py similarity index 100% rename from crm/fcrm/doctype/__init__.py rename to next_crm/ncrm/doctype/__init__.py diff --git a/crm/fcrm/doctype/crm_call_log/__init__.py b/next_crm/ncrm/doctype/crm_call_log/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_call_log/__init__.py rename to next_crm/ncrm/doctype/crm_call_log/__init__.py diff --git a/crm/fcrm/doctype/crm_call_log/crm_call_log.js b/next_crm/ncrm/doctype/crm_call_log/crm_call_log.js similarity index 100% rename from crm/fcrm/doctype/crm_call_log/crm_call_log.js rename to next_crm/ncrm/doctype/crm_call_log/crm_call_log.js diff --git a/crm/fcrm/doctype/crm_call_log/crm_call_log.json b/next_crm/ncrm/doctype/crm_call_log/crm_call_log.json similarity index 98% rename from crm/fcrm/doctype/crm_call_log/crm_call_log.json rename to next_crm/ncrm/doctype/crm_call_log/crm_call_log.json index f008743af..b7dc48dc1 100644 --- a/crm/fcrm/doctype/crm_call_log/crm_call_log.json +++ b/next_crm/ncrm/doctype/crm_call_log/crm_call_log.json @@ -95,7 +95,7 @@ "fieldname": "note", "fieldtype": "Link", "label": "Note", - "options": "FCRM Note" + "options": "NCRM Note" }, { "depends_on": "eval:doc.type == 'Incoming'", @@ -129,7 +129,7 @@ "links": [], "modified": "2024-03-16 13:23:09.201843", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Call Log", "naming_rule": "By fieldname", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_call_log/crm_call_log.py b/next_crm/ncrm/doctype/crm_call_log/crm_call_log.py similarity index 97% rename from crm/fcrm/doctype/crm_call_log/crm_call_log.py rename to next_crm/ncrm/doctype/crm_call_log/crm_call_log.py index 1908eec9f..e5e933d31 100644 --- a/crm/fcrm/doctype/crm_call_log/crm_call_log.py +++ b/next_crm/ncrm/doctype/crm_call_log/crm_call_log.py @@ -91,7 +91,7 @@ def create_lead_from_call_log(call_log): }) if call_log.get("note"): - frappe.db.set_value("FCRM Note", call_log.get("note"), { + frappe.db.set_value("NCRM Note", call_log.get("note"), { "reference_doctype": "Lead", "reference_docname": lead.name }) diff --git a/crm/fcrm/doctype/crm_call_log/test_crm_call_log.py b/next_crm/ncrm/doctype/crm_call_log/test_crm_call_log.py similarity index 100% rename from crm/fcrm/doctype/crm_call_log/test_crm_call_log.py rename to next_crm/ncrm/doctype/crm_call_log/test_crm_call_log.py diff --git a/crm/fcrm/doctype/crm_communication_status/__init__.py b/next_crm/ncrm/doctype/crm_communication_status/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_communication_status/__init__.py rename to next_crm/ncrm/doctype/crm_communication_status/__init__.py diff --git a/crm/fcrm/doctype/crm_communication_status/crm_communication_status.js b/next_crm/ncrm/doctype/crm_communication_status/crm_communication_status.js similarity index 100% rename from crm/fcrm/doctype/crm_communication_status/crm_communication_status.js rename to next_crm/ncrm/doctype/crm_communication_status/crm_communication_status.js diff --git a/crm/fcrm/doctype/crm_communication_status/crm_communication_status.json b/next_crm/ncrm/doctype/crm_communication_status/crm_communication_status.json similarity index 98% rename from crm/fcrm/doctype/crm_communication_status/crm_communication_status.json rename to next_crm/ncrm/doctype/crm_communication_status/crm_communication_status.json index ff3163e92..bcb56825a 100644 --- a/crm/fcrm/doctype/crm_communication_status/crm_communication_status.json +++ b/next_crm/ncrm/doctype/crm_communication_status/crm_communication_status.json @@ -22,7 +22,7 @@ "links": [], "modified": "2024-01-19 21:55:17.952032", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Communication Status", "naming_rule": "By fieldname", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_communication_status/crm_communication_status.py b/next_crm/ncrm/doctype/crm_communication_status/crm_communication_status.py similarity index 100% rename from crm/fcrm/doctype/crm_communication_status/crm_communication_status.py rename to next_crm/ncrm/doctype/crm_communication_status/crm_communication_status.py diff --git a/crm/fcrm/doctype/crm_communication_status/test_crm_communication_status.py b/next_crm/ncrm/doctype/crm_communication_status/test_crm_communication_status.py similarity index 100% rename from crm/fcrm/doctype/crm_communication_status/test_crm_communication_status.py rename to next_crm/ncrm/doctype/crm_communication_status/test_crm_communication_status.py diff --git a/crm/fcrm/doctype/crm_contacts/__init__.py b/next_crm/ncrm/doctype/crm_contacts/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_contacts/__init__.py rename to next_crm/ncrm/doctype/crm_contacts/__init__.py diff --git a/crm/fcrm/doctype/crm_contacts/crm_contacts.json b/next_crm/ncrm/doctype/crm_contacts/crm_contacts.json similarity index 98% rename from crm/fcrm/doctype/crm_contacts/crm_contacts.json rename to next_crm/ncrm/doctype/crm_contacts/crm_contacts.json index 5bca79f91..15d26e085 100644 --- a/crm/fcrm/doctype/crm_contacts/crm_contacts.json +++ b/next_crm/ncrm/doctype/crm_contacts/crm_contacts.json @@ -81,7 +81,7 @@ "links": [], "modified": "2023-11-12 14:58:18.846919", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Contacts", "owner": "Administrator", "permissions": [], diff --git a/crm/fcrm/doctype/crm_contacts/crm_contacts.py b/next_crm/ncrm/doctype/crm_contacts/crm_contacts.py similarity index 100% rename from crm/fcrm/doctype/crm_contacts/crm_contacts.py rename to next_crm/ncrm/doctype/crm_contacts/crm_contacts.py diff --git a/crm/fcrm/doctype/crm_deal_status/__init__.py b/next_crm/ncrm/doctype/crm_deal_status/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_deal_status/__init__.py rename to next_crm/ncrm/doctype/crm_deal_status/__init__.py diff --git a/crm/fcrm/doctype/crm_deal_status/crm_deal_status.js b/next_crm/ncrm/doctype/crm_deal_status/crm_deal_status.js similarity index 100% rename from crm/fcrm/doctype/crm_deal_status/crm_deal_status.js rename to next_crm/ncrm/doctype/crm_deal_status/crm_deal_status.js diff --git a/crm/fcrm/doctype/crm_deal_status/crm_deal_status.json b/next_crm/ncrm/doctype/crm_deal_status/crm_deal_status.json similarity index 98% rename from crm/fcrm/doctype/crm_deal_status/crm_deal_status.json rename to next_crm/ncrm/doctype/crm_deal_status/crm_deal_status.json index b0374ca1b..408b2bb84 100644 --- a/crm/fcrm/doctype/crm_deal_status/crm_deal_status.json +++ b/next_crm/ncrm/doctype/crm_deal_status/crm_deal_status.json @@ -38,7 +38,7 @@ "links": [], "modified": "2024-01-19 21:56:44.552134", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Deal Status", "naming_rule": "By fieldname", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_deal_status/crm_deal_status.py b/next_crm/ncrm/doctype/crm_deal_status/crm_deal_status.py similarity index 100% rename from crm/fcrm/doctype/crm_deal_status/crm_deal_status.py rename to next_crm/ncrm/doctype/crm_deal_status/crm_deal_status.py diff --git a/crm/fcrm/doctype/crm_deal_status/test_crm_deal_status.py b/next_crm/ncrm/doctype/crm_deal_status/test_crm_deal_status.py similarity index 100% rename from crm/fcrm/doctype/crm_deal_status/test_crm_deal_status.py rename to next_crm/ncrm/doctype/crm_deal_status/test_crm_deal_status.py diff --git a/crm/fcrm/doctype/crm_fields_layout/__init__.py b/next_crm/ncrm/doctype/crm_fields_layout/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_fields_layout/__init__.py rename to next_crm/ncrm/doctype/crm_fields_layout/__init__.py diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.js b/next_crm/ncrm/doctype/crm_fields_layout/crm_fields_layout.js similarity index 100% rename from crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.js rename to next_crm/ncrm/doctype/crm_fields_layout/crm_fields_layout.js diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.json b/next_crm/ncrm/doctype/crm_fields_layout/crm_fields_layout.json similarity index 98% rename from crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.json rename to next_crm/ncrm/doctype/crm_fields_layout/crm_fields_layout.json index 000127704..31eca6a90 100644 --- a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.json +++ b/next_crm/ncrm/doctype/crm_fields_layout/crm_fields_layout.json @@ -48,7 +48,7 @@ "links": [], "modified": "2024-06-13 15:10:01.612851", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Fields Layout", "naming_rule": "Expression", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py b/next_crm/ncrm/doctype/crm_fields_layout/crm_fields_layout.py similarity index 100% rename from crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py rename to next_crm/ncrm/doctype/crm_fields_layout/crm_fields_layout.py diff --git a/crm/fcrm/doctype/crm_fields_layout/test_crm_fields_layout.py b/next_crm/ncrm/doctype/crm_fields_layout/test_crm_fields_layout.py similarity index 100% rename from crm/fcrm/doctype/crm_fields_layout/test_crm_fields_layout.py rename to next_crm/ncrm/doctype/crm_fields_layout/test_crm_fields_layout.py diff --git a/crm/fcrm/doctype/crm_form_script/__init__.py b/next_crm/ncrm/doctype/crm_form_script/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_form_script/__init__.py rename to next_crm/ncrm/doctype/crm_form_script/__init__.py diff --git a/crm/fcrm/doctype/crm_form_script/crm_form_script.js b/next_crm/ncrm/doctype/crm_form_script/crm_form_script.js similarity index 100% rename from crm/fcrm/doctype/crm_form_script/crm_form_script.js rename to next_crm/ncrm/doctype/crm_form_script/crm_form_script.js diff --git a/crm/fcrm/doctype/crm_form_script/crm_form_script.json b/next_crm/ncrm/doctype/crm_form_script/crm_form_script.json similarity index 98% rename from crm/fcrm/doctype/crm_form_script/crm_form_script.json rename to next_crm/ncrm/doctype/crm_form_script/crm_form_script.json index 9246913a0..d4fb30e56 100644 --- a/crm/fcrm/doctype/crm_form_script/crm_form_script.json +++ b/next_crm/ncrm/doctype/crm_form_script/crm_form_script.json @@ -67,7 +67,7 @@ "links": [], "modified": "2024-09-16 19:40:19.340948", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Form Script", "naming_rule": "Set by user", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_form_script/crm_form_script.py b/next_crm/ncrm/doctype/crm_form_script/crm_form_script.py similarity index 100% rename from crm/fcrm/doctype/crm_form_script/crm_form_script.py rename to next_crm/ncrm/doctype/crm_form_script/crm_form_script.py diff --git a/crm/fcrm/doctype/crm_form_script/test_crm_form_script.py b/next_crm/ncrm/doctype/crm_form_script/test_crm_form_script.py similarity index 100% rename from crm/fcrm/doctype/crm_form_script/test_crm_form_script.py rename to next_crm/ncrm/doctype/crm_form_script/test_crm_form_script.py diff --git a/crm/fcrm/doctype/crm_invitation/__init__.py b/next_crm/ncrm/doctype/crm_invitation/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_invitation/__init__.py rename to next_crm/ncrm/doctype/crm_invitation/__init__.py diff --git a/crm/fcrm/doctype/crm_invitation/crm_invitation.js b/next_crm/ncrm/doctype/crm_invitation/crm_invitation.js similarity index 100% rename from crm/fcrm/doctype/crm_invitation/crm_invitation.js rename to next_crm/ncrm/doctype/crm_invitation/crm_invitation.js diff --git a/crm/fcrm/doctype/crm_invitation/crm_invitation.json b/next_crm/ncrm/doctype/crm_invitation/crm_invitation.json similarity index 99% rename from crm/fcrm/doctype/crm_invitation/crm_invitation.json rename to next_crm/ncrm/doctype/crm_invitation/crm_invitation.json index f5902d6ea..f75a97190 100644 --- a/crm/fcrm/doctype/crm_invitation/crm_invitation.json +++ b/next_crm/ncrm/doctype/crm_invitation/crm_invitation.json @@ -68,7 +68,7 @@ "links": [], "modified": "2024-09-03 14:59:29.450018", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Invitation", "owner": "Administrator", "permissions": [ diff --git a/crm/fcrm/doctype/crm_invitation/crm_invitation.py b/next_crm/ncrm/doctype/crm_invitation/crm_invitation.py similarity index 94% rename from crm/fcrm/doctype/crm_invitation/crm_invitation.py rename to next_crm/ncrm/doctype/crm_invitation/crm_invitation.py index f4c9a8f9c..004b023b5 100644 --- a/crm/fcrm/doctype/crm_invitation/crm_invitation.py +++ b/next_crm/ncrm/doctype/crm_invitation/crm_invitation.py @@ -17,11 +17,11 @@ def after_insert(self): self.invite_via_email() def invite_via_email(self): - invite_link = frappe.utils.get_url(f"/api/method/crm.api.accept_invitation?key={self.key}") + invite_link = frappe.utils.get_url(f"/api/method/next_crm.api.accept_invitation?key={self.key}") if frappe.local.dev_server: print(f"Invite link for {self.email}: {invite_link}") - title = f"Frappe CRM" + title = f"Next CRM" template = "crm_invitation" frappe.sendmail( diff --git a/crm/fcrm/doctype/crm_invitation/test_crm_invitation.py b/next_crm/ncrm/doctype/crm_invitation/test_crm_invitation.py similarity index 100% rename from crm/fcrm/doctype/crm_invitation/test_crm_invitation.py rename to next_crm/ncrm/doctype/crm_invitation/test_crm_invitation.py diff --git a/crm/fcrm/doctype/crm_lead_status/__init__.py b/next_crm/ncrm/doctype/crm_lead_status/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_lead_status/__init__.py rename to next_crm/ncrm/doctype/crm_lead_status/__init__.py diff --git a/crm/fcrm/doctype/crm_lead_status/crm_lead_status.js b/next_crm/ncrm/doctype/crm_lead_status/crm_lead_status.js similarity index 100% rename from crm/fcrm/doctype/crm_lead_status/crm_lead_status.js rename to next_crm/ncrm/doctype/crm_lead_status/crm_lead_status.js diff --git a/crm/fcrm/doctype/crm_lead_status/crm_lead_status.json b/next_crm/ncrm/doctype/crm_lead_status/crm_lead_status.json similarity index 98% rename from crm/fcrm/doctype/crm_lead_status/crm_lead_status.json rename to next_crm/ncrm/doctype/crm_lead_status/crm_lead_status.json index 587f6b610..4fe3105e1 100644 --- a/crm/fcrm/doctype/crm_lead_status/crm_lead_status.json +++ b/next_crm/ncrm/doctype/crm_lead_status/crm_lead_status.json @@ -39,7 +39,7 @@ "links": [], "modified": "2024-01-19 21:56:16.872924", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Lead Status", "naming_rule": "By fieldname", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_lead_status/crm_lead_status.py b/next_crm/ncrm/doctype/crm_lead_status/crm_lead_status.py similarity index 100% rename from crm/fcrm/doctype/crm_lead_status/crm_lead_status.py rename to next_crm/ncrm/doctype/crm_lead_status/crm_lead_status.py diff --git a/crm/fcrm/doctype/crm_lead_status/test_crm_lead_status.py b/next_crm/ncrm/doctype/crm_lead_status/test_crm_lead_status.py similarity index 100% rename from crm/fcrm/doctype/crm_lead_status/test_crm_lead_status.py rename to next_crm/ncrm/doctype/crm_lead_status/test_crm_lead_status.py diff --git a/crm/fcrm/doctype/crm_notification/__init__.py b/next_crm/ncrm/doctype/crm_notification/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_notification/__init__.py rename to next_crm/ncrm/doctype/crm_notification/__init__.py diff --git a/crm/fcrm/doctype/crm_notification/crm_notification.js b/next_crm/ncrm/doctype/crm_notification/crm_notification.js similarity index 100% rename from crm/fcrm/doctype/crm_notification/crm_notification.js rename to next_crm/ncrm/doctype/crm_notification/crm_notification.js diff --git a/crm/fcrm/doctype/crm_notification/crm_notification.json b/next_crm/ncrm/doctype/crm_notification/crm_notification.json similarity index 99% rename from crm/fcrm/doctype/crm_notification/crm_notification.json rename to next_crm/ncrm/doctype/crm_notification/crm_notification.json index f6bc0380b..673fb859c 100644 --- a/crm/fcrm/doctype/crm_notification/crm_notification.json +++ b/next_crm/ncrm/doctype/crm_notification/crm_notification.json @@ -118,7 +118,7 @@ "links": [], "modified": "2024-09-23 19:34:08.635305", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Notification", "owner": "Administrator", "permissions": [ diff --git a/crm/fcrm/doctype/crm_notification/crm_notification.py b/next_crm/ncrm/doctype/crm_notification/crm_notification.py similarity index 100% rename from crm/fcrm/doctype/crm_notification/crm_notification.py rename to next_crm/ncrm/doctype/crm_notification/crm_notification.py diff --git a/crm/fcrm/doctype/crm_notification/test_crm_notification.py b/next_crm/ncrm/doctype/crm_notification/test_crm_notification.py similarity index 100% rename from crm/fcrm/doctype/crm_notification/test_crm_notification.py rename to next_crm/ncrm/doctype/crm_notification/test_crm_notification.py diff --git a/crm/fcrm/doctype/crm_service_level_agreement/__init__.py b/next_crm/ncrm/doctype/crm_service_level_agreement/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_service_level_agreement/__init__.py rename to next_crm/ncrm/doctype/crm_service_level_agreement/__init__.py diff --git a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js b/next_crm/ncrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js similarity index 100% rename from crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js rename to next_crm/ncrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js diff --git a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json b/next_crm/ncrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json similarity index 99% rename from crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json rename to next_crm/ncrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json index 84a30f10f..2e030bb70 100644 --- a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json +++ b/next_crm/ncrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json @@ -117,7 +117,7 @@ "links": [], "modified": "2024-01-19 21:54:25.831753", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Service Level Agreement", "naming_rule": "By fieldname", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py b/next_crm/ncrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py similarity index 98% rename from crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py rename to next_crm/ncrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py index 6d95520cc..55da5f472 100644 --- a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py +++ b/next_crm/ncrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py @@ -13,7 +13,7 @@ now_datetime, time_diff_in_seconds, ) -from crm.fcrm.doctype.crm_service_level_agreement.utils import get_context +from next_crm.ncrm.doctype.crm_service_level_agreement.utils import get_context class CRMServiceLevelAgreement(Document): diff --git a/crm/fcrm/doctype/crm_service_level_agreement/test_crm_service_level_agreement.py b/next_crm/ncrm/doctype/crm_service_level_agreement/test_crm_service_level_agreement.py similarity index 100% rename from crm/fcrm/doctype/crm_service_level_agreement/test_crm_service_level_agreement.py rename to next_crm/ncrm/doctype/crm_service_level_agreement/test_crm_service_level_agreement.py diff --git a/crm/fcrm/doctype/crm_service_level_agreement/utils.py b/next_crm/ncrm/doctype/crm_service_level_agreement/utils.py similarity index 100% rename from crm/fcrm/doctype/crm_service_level_agreement/utils.py rename to next_crm/ncrm/doctype/crm_service_level_agreement/utils.py diff --git a/crm/fcrm/doctype/crm_service_level_priority/__init__.py b/next_crm/ncrm/doctype/crm_service_level_priority/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_service_level_priority/__init__.py rename to next_crm/ncrm/doctype/crm_service_level_priority/__init__.py diff --git a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.js b/next_crm/ncrm/doctype/crm_service_level_priority/crm_service_level_priority.js similarity index 100% rename from crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.js rename to next_crm/ncrm/doctype/crm_service_level_priority/crm_service_level_priority.js diff --git a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.json b/next_crm/ncrm/doctype/crm_service_level_priority/crm_service_level_priority.json similarity index 98% rename from crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.json rename to next_crm/ncrm/doctype/crm_service_level_priority/crm_service_level_priority.json index ede5c8c0e..b7178aefd 100644 --- a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.json +++ b/next_crm/ncrm/doctype/crm_service_level_priority/crm_service_level_priority.json @@ -54,7 +54,7 @@ "links": [], "modified": "2023-12-15 11:49:54.424029", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Service Level Priority", "owner": "Administrator", "permissions": [], diff --git a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.py b/next_crm/ncrm/doctype/crm_service_level_priority/crm_service_level_priority.py similarity index 100% rename from crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.py rename to next_crm/ncrm/doctype/crm_service_level_priority/crm_service_level_priority.py diff --git a/crm/fcrm/doctype/crm_service_level_priority/test_crm_service_level_priority.py b/next_crm/ncrm/doctype/crm_service_level_priority/test_crm_service_level_priority.py similarity index 100% rename from crm/fcrm/doctype/crm_service_level_priority/test_crm_service_level_priority.py rename to next_crm/ncrm/doctype/crm_service_level_priority/test_crm_service_level_priority.py diff --git a/crm/fcrm/doctype/crm_status_change_log/__init__.py b/next_crm/ncrm/doctype/crm_status_change_log/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_status_change_log/__init__.py rename to next_crm/ncrm/doctype/crm_status_change_log/__init__.py diff --git a/crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.json b/next_crm/ncrm/doctype/crm_status_change_log/crm_status_change_log.json similarity index 98% rename from crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.json rename to next_crm/ncrm/doctype/crm_status_change_log/crm_status_change_log.json index 36da12b17..8e7a5ec45 100644 --- a/crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.json +++ b/next_crm/ncrm/doctype/crm_status_change_log/crm_status_change_log.json @@ -68,7 +68,7 @@ "links": [], "modified": "2024-01-06 13:26:40.597277", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Status Change Log", "owner": "Administrator", "permissions": [], diff --git a/crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.py b/next_crm/ncrm/doctype/crm_status_change_log/crm_status_change_log.py similarity index 100% rename from crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.py rename to next_crm/ncrm/doctype/crm_status_change_log/crm_status_change_log.py diff --git a/crm/fcrm/doctype/crm_task/__init__.py b/next_crm/ncrm/doctype/crm_task/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_task/__init__.py rename to next_crm/ncrm/doctype/crm_task/__init__.py diff --git a/crm/fcrm/doctype/crm_task/crm_task.js b/next_crm/ncrm/doctype/crm_task/crm_task.js similarity index 100% rename from crm/fcrm/doctype/crm_task/crm_task.js rename to next_crm/ncrm/doctype/crm_task/crm_task.js diff --git a/crm/fcrm/doctype/crm_task/crm_task.json b/next_crm/ncrm/doctype/crm_task/crm_task.json similarity index 99% rename from crm/fcrm/doctype/crm_task/crm_task.json rename to next_crm/ncrm/doctype/crm_task/crm_task.json index 39701d81a..c951ec55b 100644 --- a/crm/fcrm/doctype/crm_task/crm_task.json +++ b/next_crm/ncrm/doctype/crm_task/crm_task.json @@ -89,7 +89,7 @@ "links": [], "modified": "2024-02-08 12:04:00.955984", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM Task", "naming_rule": "Autoincrement", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_task/crm_task.py b/next_crm/ncrm/doctype/crm_task/crm_task.py similarity index 96% rename from crm/fcrm/doctype/crm_task/crm_task.py rename to next_crm/ncrm/doctype/crm_task/crm_task.py index 06b50c4de..24e7ee1ec 100644 --- a/crm/fcrm/doctype/crm_task/crm_task.py +++ b/next_crm/ncrm/doctype/crm_task/crm_task.py @@ -5,7 +5,7 @@ from frappe import _ from frappe.model.document import Document from frappe.desk.form.assign_to import add as assign, remove as unassign -from crm.fcrm.doctype.crm_notification.crm_notification import notify_user +from next_crm.ncrm.doctype.crm_notification.crm_notification import notify_user class CRMTask(Document): diff --git a/crm/fcrm/doctype/crm_task/test_crm_task.py b/next_crm/ncrm/doctype/crm_task/test_crm_task.py similarity index 100% rename from crm/fcrm/doctype/crm_task/test_crm_task.py rename to next_crm/ncrm/doctype/crm_task/test_crm_task.py diff --git a/crm/fcrm/doctype/crm_view_settings/__init__.py b/next_crm/ncrm/doctype/crm_view_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_view_settings/__init__.py rename to next_crm/ncrm/doctype/crm_view_settings/__init__.py diff --git a/crm/fcrm/doctype/crm_view_settings/crm_view_settings.js b/next_crm/ncrm/doctype/crm_view_settings/crm_view_settings.js similarity index 100% rename from crm/fcrm/doctype/crm_view_settings/crm_view_settings.js rename to next_crm/ncrm/doctype/crm_view_settings/crm_view_settings.js diff --git a/crm/fcrm/doctype/crm_view_settings/crm_view_settings.json b/next_crm/ncrm/doctype/crm_view_settings/crm_view_settings.json similarity index 99% rename from crm/fcrm/doctype/crm_view_settings/crm_view_settings.json rename to next_crm/ncrm/doctype/crm_view_settings/crm_view_settings.json index dde0b1286..3cc0febe6 100644 --- a/crm/fcrm/doctype/crm_view_settings/crm_view_settings.json +++ b/next_crm/ncrm/doctype/crm_view_settings/crm_view_settings.json @@ -184,7 +184,7 @@ "links": [], "modified": "2024-06-25 19:40:12.067788", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "CRM View Settings", "naming_rule": "Autoincrement", "owner": "Administrator", diff --git a/crm/fcrm/doctype/crm_view_settings/crm_view_settings.py b/next_crm/ncrm/doctype/crm_view_settings/crm_view_settings.py similarity index 100% rename from crm/fcrm/doctype/crm_view_settings/crm_view_settings.py rename to next_crm/ncrm/doctype/crm_view_settings/crm_view_settings.py diff --git a/crm/fcrm/doctype/crm_view_settings/test_crm_view_settings.py b/next_crm/ncrm/doctype/crm_view_settings/test_crm_view_settings.py similarity index 100% rename from crm/fcrm/doctype/crm_view_settings/test_crm_view_settings.py rename to next_crm/ncrm/doctype/crm_view_settings/test_crm_view_settings.py diff --git a/crm/fcrm/doctype/erpnext_crm_settings/__init__.py b/next_crm/ncrm/doctype/erpnext_crm_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/erpnext_crm_settings/__init__.py rename to next_crm/ncrm/doctype/erpnext_crm_settings/__init__.py diff --git a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.js b/next_crm/ncrm/doctype/erpnext_crm_settings/erpnext_crm_settings.js similarity index 100% rename from crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.js rename to next_crm/ncrm/doctype/erpnext_crm_settings/erpnext_crm_settings.js diff --git a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.json b/next_crm/ncrm/doctype/erpnext_crm_settings/erpnext_crm_settings.json similarity index 99% rename from crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.json rename to next_crm/ncrm/doctype/erpnext_crm_settings/erpnext_crm_settings.json index 9a6f0f75e..9217222e5 100644 --- a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.json +++ b/next_crm/ncrm/doctype/erpnext_crm_settings/erpnext_crm_settings.json @@ -103,7 +103,7 @@ "links": [], "modified": "2024-09-17 19:21:11.060901", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "ERPNext CRM Settings", "owner": "Administrator", "permissions": [ diff --git a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py b/next_crm/ncrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py similarity index 97% rename from crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py rename to next_crm/ncrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py index 8d728102d..e6719ff2c 100644 --- a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py +++ b/next_crm/ncrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py @@ -241,7 +241,7 @@ def get_crm_form_script(): label: __("Create Quotation"), onClick: async () => { let quotation_url = await call( - "crm.fcrm.doctype.erpnext_crm_settings.erpnext_crm_settings.get_quotation_url", + "next_crm.ncrm.doctype.erpnext_crm_settings.erpnext_crm_settings.get_quotation_url", { opportunity: doc.name, customer: doc.customer @@ -255,7 +255,7 @@ def get_crm_form_script(): }) } if (is_erpnext_integration_enabled) { - let customer_url = await call("crm.fcrm.doctype.erpnext_crm_settings.erpnext_crm_settings.get_customer_link", { + let customer_url = await call("next_crm.ncrm.doctype.erpnext_crm_settings.erpnext_crm_settings.get_customer_link", { opportunity: doc.name }); if (customer_url) { diff --git a/crm/fcrm/doctype/erpnext_crm_settings/test_erpnext_crm_settings.py b/next_crm/ncrm/doctype/erpnext_crm_settings/test_erpnext_crm_settings.py similarity index 100% rename from crm/fcrm/doctype/erpnext_crm_settings/test_erpnext_crm_settings.py rename to next_crm/ncrm/doctype/erpnext_crm_settings/test_erpnext_crm_settings.py diff --git a/crm/fcrm/doctype/fcrm_note/__init__.py b/next_crm/ncrm/doctype/ncrm_note/__init__.py similarity index 100% rename from crm/fcrm/doctype/fcrm_note/__init__.py rename to next_crm/ncrm/doctype/ncrm_note/__init__.py diff --git a/crm/fcrm/doctype/fcrm_note/fcrm_note.js b/next_crm/ncrm/doctype/ncrm_note/ncrm_note.js similarity index 100% rename from crm/fcrm/doctype/fcrm_note/fcrm_note.js rename to next_crm/ncrm/doctype/ncrm_note/ncrm_note.js diff --git a/crm/fcrm/doctype/fcrm_note/fcrm_note.json b/next_crm/ncrm/doctype/ncrm_note/ncrm_note.json similarity index 97% rename from crm/fcrm/doctype/fcrm_note/fcrm_note.json rename to next_crm/ncrm/doctype/ncrm_note/ncrm_note.json index 6cc90cc8f..2f89d621c 100644 --- a/crm/fcrm/doctype/fcrm_note/fcrm_note.json +++ b/next_crm/ncrm/doctype/ncrm_note/ncrm_note.json @@ -51,8 +51,8 @@ ], "modified": "2024-01-19 21:56:30.123334", "modified_by": "Administrator", - "module": "FCRM", - "name": "FCRM Note", + "module": "NCRM", + "name": "NCRM Note", "owner": "Administrator", "permissions": [ { diff --git a/crm/fcrm/doctype/fcrm_note/fcrm_note.py b/next_crm/ncrm/doctype/ncrm_note/ncrm_note.py similarity index 93% rename from crm/fcrm/doctype/fcrm_note/fcrm_note.py rename to next_crm/ncrm/doctype/ncrm_note/ncrm_note.py index c81538d8c..e68b7eda4 100644 --- a/crm/fcrm/doctype/fcrm_note/fcrm_note.py +++ b/next_crm/ncrm/doctype/ncrm_note/ncrm_note.py @@ -5,7 +5,7 @@ from frappe.model.document import Document -class FCRMNote(Document): +class NCRMNote(Document): @staticmethod def default_list_data(): rows = [ diff --git a/crm/fcrm/doctype/fcrm_note/test_fcrm_note.py b/next_crm/ncrm/doctype/ncrm_note/test_fcrm_note.py similarity index 81% rename from crm/fcrm/doctype/fcrm_note/test_fcrm_note.py rename to next_crm/ncrm/doctype/ncrm_note/test_fcrm_note.py index 6a98a6ff2..5ee594416 100644 --- a/crm/fcrm/doctype/fcrm_note/test_fcrm_note.py +++ b/next_crm/ncrm/doctype/ncrm_note/test_fcrm_note.py @@ -5,5 +5,5 @@ from frappe.tests import UnitTestCase -class TestFCRMNote(UnitTestCase): +class TestNCRMNote(UnitTestCase): pass diff --git a/crm/fcrm/doctype/fcrm_settings/__init__.py b/next_crm/ncrm/doctype/ncrm_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/fcrm_settings/__init__.py rename to next_crm/ncrm/doctype/ncrm_settings/__init__.py diff --git a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.js b/next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.js similarity index 100% rename from crm/fcrm/doctype/fcrm_settings/fcrm_settings.js rename to next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.js diff --git a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json b/next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.json similarity index 93% rename from crm/fcrm/doctype/fcrm_settings/fcrm_settings.json rename to next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.json index c76784ae4..5232fc7f9 100644 --- a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json +++ b/next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.json @@ -19,8 +19,8 @@ "links": [], "modified": "2024-09-29 13:49:07.835379", "modified_by": "Administrator", - "module": "FCRM", - "name": "FCRM Settings", + "module": "NCRM", + "name": "NCRM Settings", "owner": "Administrator", "permissions": [ { diff --git a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.py b/next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.py similarity index 78% rename from crm/fcrm/doctype/fcrm_settings/fcrm_settings.py rename to next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.py index 65e6d6f31..48734386c 100644 --- a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.py +++ b/next_crm/ncrm/doctype/ncrm_settings/ncrm_settings.py @@ -3,10 +3,10 @@ import frappe from frappe.model.document import Document -from crm.install import after_install +from next_crm.install import after_install -class FCRMSettings(Document): +class NCRMSettings(Document): @frappe.whitelist() def restore_defaults(self, force=False): after_install(force) diff --git a/crm/fcrm/doctype/fcrm_settings/test_fcrm_settings.py b/next_crm/ncrm/doctype/ncrm_settings/test_ncrm_settings.py similarity index 79% rename from crm/fcrm/doctype/fcrm_settings/test_fcrm_settings.py rename to next_crm/ncrm/doctype/ncrm_settings/test_ncrm_settings.py index 8e626f3e5..4254db71e 100644 --- a/crm/fcrm/doctype/fcrm_settings/test_fcrm_settings.py +++ b/next_crm/ncrm/doctype/ncrm_settings/test_ncrm_settings.py @@ -5,5 +5,5 @@ from frappe.tests import UnitTestCase -class TestFCRMSettings(UnitTestCase): +class TestNCRMSettings(UnitTestCase): pass diff --git a/crm/fcrm/doctype/twilio_agents/__init__.py b/next_crm/ncrm/doctype/twilio_agents/__init__.py similarity index 100% rename from crm/fcrm/doctype/twilio_agents/__init__.py rename to next_crm/ncrm/doctype/twilio_agents/__init__.py diff --git a/crm/fcrm/doctype/twilio_agents/test_twilio_agents.py b/next_crm/ncrm/doctype/twilio_agents/test_twilio_agents.py similarity index 100% rename from crm/fcrm/doctype/twilio_agents/test_twilio_agents.py rename to next_crm/ncrm/doctype/twilio_agents/test_twilio_agents.py diff --git a/crm/fcrm/doctype/twilio_agents/twilio_agents.js b/next_crm/ncrm/doctype/twilio_agents/twilio_agents.js similarity index 100% rename from crm/fcrm/doctype/twilio_agents/twilio_agents.js rename to next_crm/ncrm/doctype/twilio_agents/twilio_agents.js diff --git a/crm/fcrm/doctype/twilio_agents/twilio_agents.json b/next_crm/ncrm/doctype/twilio_agents/twilio_agents.json similarity index 98% rename from crm/fcrm/doctype/twilio_agents/twilio_agents.json rename to next_crm/ncrm/doctype/twilio_agents/twilio_agents.json index 652511304..5bc92a7d2 100644 --- a/crm/fcrm/doctype/twilio_agents/twilio_agents.json +++ b/next_crm/ncrm/doctype/twilio_agents/twilio_agents.json @@ -53,7 +53,7 @@ "links": [], "modified": "2024-01-19 21:57:18.626669", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "Twilio Agents", "naming_rule": "By fieldname", "owner": "Administrator", diff --git a/crm/fcrm/doctype/twilio_agents/twilio_agents.py b/next_crm/ncrm/doctype/twilio_agents/twilio_agents.py similarity index 100% rename from crm/fcrm/doctype/twilio_agents/twilio_agents.py rename to next_crm/ncrm/doctype/twilio_agents/twilio_agents.py diff --git a/crm/fcrm/doctype/twilio_settings/__init__.py b/next_crm/ncrm/doctype/twilio_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/twilio_settings/__init__.py rename to next_crm/ncrm/doctype/twilio_settings/__init__.py diff --git a/crm/fcrm/doctype/twilio_settings/test_twilio_settings.py b/next_crm/ncrm/doctype/twilio_settings/test_twilio_settings.py similarity index 100% rename from crm/fcrm/doctype/twilio_settings/test_twilio_settings.py rename to next_crm/ncrm/doctype/twilio_settings/test_twilio_settings.py diff --git a/crm/fcrm/doctype/twilio_settings/twilio_settings.js b/next_crm/ncrm/doctype/twilio_settings/twilio_settings.js similarity index 100% rename from crm/fcrm/doctype/twilio_settings/twilio_settings.js rename to next_crm/ncrm/doctype/twilio_settings/twilio_settings.js diff --git a/crm/fcrm/doctype/twilio_settings/twilio_settings.json b/next_crm/ncrm/doctype/twilio_settings/twilio_settings.json similarity index 99% rename from crm/fcrm/doctype/twilio_settings/twilio_settings.json rename to next_crm/ncrm/doctype/twilio_settings/twilio_settings.json index e32ca05fb..3eeed096a 100644 --- a/crm/fcrm/doctype/twilio_settings/twilio_settings.json +++ b/next_crm/ncrm/doctype/twilio_settings/twilio_settings.json @@ -99,7 +99,7 @@ "links": [], "modified": "2024-07-01 17:55:25.003703", "modified_by": "Administrator", - "module": "FCRM", + "module": "NCRM", "name": "Twilio Settings", "owner": "Administrator", "permissions": [ diff --git a/crm/fcrm/doctype/twilio_settings/twilio_settings.py b/next_crm/ncrm/doctype/twilio_settings/twilio_settings.py similarity index 94% rename from crm/fcrm/doctype/twilio_settings/twilio_settings.py rename to next_crm/ncrm/doctype/twilio_settings/twilio_settings.py index 1d3a20b63..78f893241 100644 --- a/crm/fcrm/doctype/twilio_settings/twilio_settings.py +++ b/next_crm/ncrm/doctype/twilio_settings/twilio_settings.py @@ -8,7 +8,7 @@ from twilio.rest import Client class TwilioSettings(Document): - friendly_resource_name = "Frappe CRM" # System creates TwiML app & API keys with this name. + friendly_resource_name = "Next CRM" # System creates TwiML app & API keys with this name. def validate(self): self.validate_twilio_account() @@ -62,7 +62,7 @@ def create_api_key(self, twilio): frappe.throw(_("Twilio API credential creation error.")) def get_twilio_voice_url(self): - url_path = "/api/method/crm.integrations.twilio.api.voice" + url_path = "/api/method/next_crm.integrations.twilio.api.voice" return get_public_url(url_path) def get_application(self, twilio, friendly_name=None): diff --git a/crm/fcrm/workspace/frappe_crm/frappe_crm.json b/next_crm/ncrm/workspace/frappe_crm/frappe_crm.json similarity index 97% rename from crm/fcrm/workspace/frappe_crm/frappe_crm.json rename to next_crm/ncrm/workspace/frappe_crm/frappe_crm.json index 63662da36..499e104a0 100644 --- a/crm/fcrm/workspace/frappe_crm/frappe_crm.json +++ b/next_crm/ncrm/workspace/frappe_crm/frappe_crm.json @@ -11,12 +11,12 @@ "idx": 0, "indicator_color": "", "is_hidden": 0, - "label": "Frappe CRM", + "label": "Next CRM", "links": [], "modified": "2024-01-04 19:08:27.799960", "modified_by": "Administrator", - "module": "FCRM", - "name": "Frappe CRM", + "module": "NCRM", + "name": "Next CRM", "number_cards": [], "owner": "shariq@frappe.io", "parent_page": "", @@ -46,7 +46,7 @@ "doc_view": "List", "label": "CRM Portal Page", "type": "URL", - "url": "/crm" + "url": "/next-crm" }, { "color": "Grey", @@ -129,5 +129,5 @@ "type": "DocType" } ], - "title": "Frappe CRM" + "title": "Next CRM" } \ No newline at end of file diff --git a/crm/overrides/contact.py b/next_crm/overrides/contact.py similarity index 100% rename from crm/overrides/contact.py rename to next_crm/overrides/contact.py diff --git a/crm/overrides/customer.py b/next_crm/overrides/customer.py similarity index 100% rename from crm/overrides/customer.py rename to next_crm/overrides/customer.py diff --git a/crm/overrides/customize_form.py b/next_crm/overrides/customize_form.py similarity index 100% rename from crm/overrides/customize_form.py rename to next_crm/overrides/customize_form.py diff --git a/crm/overrides/email_template.py b/next_crm/overrides/email_template.py similarity index 100% rename from crm/overrides/email_template.py rename to next_crm/overrides/email_template.py diff --git a/crm/overrides/lead.py b/next_crm/overrides/lead.py similarity index 97% rename from crm/overrides/lead.py rename to next_crm/overrides/lead.py index 791243b42..ae9d2d083 100644 --- a/crm/overrides/lead.py +++ b/next_crm/overrides/lead.py @@ -8,8 +8,8 @@ from frappe.utils import has_gravatar, validate_email_address from erpnext.crm.doctype.lead.lead import Lead -from crm.fcrm.doctype.crm_service_level_agreement.utils import get_sla -from crm.fcrm.doctype.crm_status_change_log.crm_status_change_log import add_status_change_log +from next_crm.ncrm.doctype.crm_service_level_agreement.utils import get_sla +from next_crm.ncrm.doctype.crm_status_change_log.crm_status_change_log import add_status_change_log class Lead(Lead): diff --git a/crm/overrides/opportunity.py b/next_crm/overrides/opportunity.py similarity index 97% rename from crm/overrides/opportunity.py rename to next_crm/overrides/opportunity.py index f31ac3813..adc9e83fa 100644 --- a/crm/overrides/opportunity.py +++ b/next_crm/overrides/opportunity.py @@ -8,8 +8,8 @@ from erpnext.crm.doctype.opportunity.opportunity import Opportunity -from crm.fcrm.doctype.crm_service_level_agreement.utils import get_sla -from crm.fcrm.doctype.crm_status_change_log.crm_status_change_log import add_status_change_log +from next_crm.ncrm.doctype.crm_service_level_agreement.utils import get_sla +from next_crm.ncrm.doctype.crm_status_change_log.crm_status_change_log import add_status_change_log class Opportunity(Opportunity): diff --git a/crm/overrides/user.py b/next_crm/overrides/user.py similarity index 80% rename from crm/overrides/user.py rename to next_crm/overrides/user.py index d938825c2..d473e72f4 100644 --- a/crm/overrides/user.py +++ b/next_crm/overrides/user.py @@ -1,7 +1,7 @@ # import frappe from frappe import _ from frappe.core.doctype.user.user import User -from crm.api.demo import validate_reset_password +from next_crm.api.demo import validate_reset_password class CustomUser(User): diff --git a/next_crm/patches.txt b/next_crm/patches.txt new file mode 100644 index 000000000..543d32e30 --- /dev/null +++ b/next_crm/patches.txt @@ -0,0 +1,11 @@ +[pre_model_sync] +# Patches added in this section will be executed before doctypes are migrated +# Read docs to understand patches: https://frappeframework.com/docs/v14/user/en/database-migrations +next_crm.patches.v1_0.move_crm_note_data_to_ncrm_note + +[post_model_sync] +# Patches added in this section will be executed after doctypes are migrated +next_crm.patches.v1_0.create_email_template_custom_fields +next_crm.patches.v1_0.create_default_fields_layout #31/10/2024 +next_crm.patches.v1_0.create_default_sidebar_fields_layout +next_crm.patches.v1_0.update_opportunity_quick_entry_layout \ No newline at end of file diff --git a/crm/patches/v1_0/__init__.py b/next_crm/patches/v1_0/__init__.py similarity index 100% rename from crm/patches/v1_0/__init__.py rename to next_crm/patches/v1_0/__init__.py diff --git a/next_crm/patches/v1_0/create_default_fields_layout.py b/next_crm/patches/v1_0/create_default_fields_layout.py new file mode 100644 index 000000000..72557dc02 --- /dev/null +++ b/next_crm/patches/v1_0/create_default_fields_layout.py @@ -0,0 +1,5 @@ + +from next_crm.install import add_default_fields_layout + +def execute(): + add_default_fields_layout() \ No newline at end of file diff --git a/crm/patches/v1_0/create_default_sidebar_fields_layout.py b/next_crm/patches/v1_0/create_default_sidebar_fields_layout.py similarity index 100% rename from crm/patches/v1_0/create_default_sidebar_fields_layout.py rename to next_crm/patches/v1_0/create_default_sidebar_fields_layout.py diff --git a/next_crm/patches/v1_0/create_email_template_custom_fields.py b/next_crm/patches/v1_0/create_email_template_custom_fields.py new file mode 100644 index 000000000..87f9c806a --- /dev/null +++ b/next_crm/patches/v1_0/create_email_template_custom_fields.py @@ -0,0 +1,5 @@ + +from next_crm.install import add_email_template_custom_fields + +def execute(): + add_email_template_custom_fields() \ No newline at end of file diff --git a/crm/patches/v1_0/move_crm_note_data_to_fcrm_note.py b/next_crm/patches/v1_0/move_crm_note_data_to_fcrm_note.py similarity index 72% rename from crm/patches/v1_0/move_crm_note_data_to_fcrm_note.py rename to next_crm/patches/v1_0/move_crm_note_data_to_fcrm_note.py index 2f1b319eb..3761ecfe0 100644 --- a/crm/patches/v1_0/move_crm_note_data_to_fcrm_note.py +++ b/next_crm/patches/v1_0/move_crm_note_data_to_fcrm_note.py @@ -4,21 +4,21 @@ def execute(): - if not frappe.db.exists("DocType", "FCRM Note"): + if not frappe.db.exists("DocType", "NCRM Note"): frappe.flags.ignore_route_conflict_validation = True - rename_doc("DocType", "CRM Note", "FCRM Note") + rename_doc("DocType", "CRM Note", "NCRM Note") frappe.flags.ignore_route_conflict_validation = False - frappe.reload_doctype("FCRM Note", force=True) + frappe.reload_doctype("NCRM Note", force=True) - if frappe.db.exists("DocType", "FCRM Note") and frappe.db.count("FCRM Note") > 0: + if frappe.db.exists("DocType", "NCRM Note") and frappe.db.count("NCRM Note") > 0: return notes = frappe.db.sql("SELECT * FROM `tabCRM Note`", as_dict=True) if notes: for note in notes: doc = frappe.get_doc({ - "doctype": "FCRM Note", + "doctype": "NCRM Note", "creation": note.get("creation"), "modified": note.get("modified"), "modified_by": note.get("modified_by"), diff --git a/crm/patches/v1_0/update_opportunity_quick_entry_layout.py b/next_crm/patches/v1_0/update_opportunity_quick_entry_layout.py similarity index 100% rename from crm/patches/v1_0/update_opportunity_quick_entry_layout.py rename to next_crm/patches/v1_0/update_opportunity_quick_entry_layout.py diff --git a/crm/public/.gitkeep b/next_crm/public/.gitkeep similarity index 100% rename from crm/public/.gitkeep rename to next_crm/public/.gitkeep diff --git a/crm/public/images/desk.png b/next_crm/public/images/desk.png similarity index 100% rename from crm/public/images/desk.png rename to next_crm/public/images/desk.png diff --git a/crm/public/images/logo.png b/next_crm/public/images/logo.png similarity index 100% rename from crm/public/images/logo.png rename to next_crm/public/images/logo.png diff --git a/crm/public/images/logo.svg b/next_crm/public/images/logo.svg similarity index 100% rename from crm/public/images/logo.svg rename to next_crm/public/images/logo.svg diff --git a/crm/public/js/lead.js b/next_crm/public/js/lead.js similarity index 69% rename from crm/public/js/lead.js rename to next_crm/public/js/lead.js index a1eb13564..10ff62986 100644 --- a/crm/public/js/lead.js +++ b/next_crm/public/js/lead.js @@ -2,6 +2,6 @@ // For license information, please see license.txt frappe.ui.form.on("Lead", { refresh(frm) { - frm.add_web_link(`/crm/leads/${frm.doc.name}`, __("Open in Portal")); + frm.add_web_link(`/next-crm/leads/${frm.doc.name}`, __("Open in Portal")); }, }); \ No newline at end of file diff --git a/crm/public/js/opportunity.js b/next_crm/public/js/opportunity.js similarity index 68% rename from crm/public/js/opportunity.js rename to next_crm/public/js/opportunity.js index 30994b193..836b249e2 100644 --- a/crm/public/js/opportunity.js +++ b/next_crm/public/js/opportunity.js @@ -3,6 +3,6 @@ frappe.ui.form.on("Opportunity", { refresh(frm) { - frm.add_web_link(`/crm/opportunities/${frm.doc.name}`, __("Open in Portal")); + frm.add_web_link(`/next-crm/opportunities/${frm.doc.name}`, __("Open in Portal")); }, }); diff --git a/crm/public/manifest/apple-icon-180.png b/next_crm/public/manifest/apple-icon-180.png similarity index 100% rename from crm/public/manifest/apple-icon-180.png rename to next_crm/public/manifest/apple-icon-180.png diff --git a/crm/public/manifest/apple-splash-1125-2436.jpg b/next_crm/public/manifest/apple-splash-1125-2436.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1125-2436.jpg rename to next_crm/public/manifest/apple-splash-1125-2436.jpg diff --git a/crm/public/manifest/apple-splash-1136-640.jpg b/next_crm/public/manifest/apple-splash-1136-640.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1136-640.jpg rename to next_crm/public/manifest/apple-splash-1136-640.jpg diff --git a/crm/public/manifest/apple-splash-1170-2532.jpg b/next_crm/public/manifest/apple-splash-1170-2532.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1170-2532.jpg rename to next_crm/public/manifest/apple-splash-1170-2532.jpg diff --git a/crm/public/manifest/apple-splash-1179-2556.jpg b/next_crm/public/manifest/apple-splash-1179-2556.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1179-2556.jpg rename to next_crm/public/manifest/apple-splash-1179-2556.jpg diff --git a/crm/public/manifest/apple-splash-1242-2208.jpg b/next_crm/public/manifest/apple-splash-1242-2208.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1242-2208.jpg rename to next_crm/public/manifest/apple-splash-1242-2208.jpg diff --git a/crm/public/manifest/apple-splash-1242-2688.jpg b/next_crm/public/manifest/apple-splash-1242-2688.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1242-2688.jpg rename to next_crm/public/manifest/apple-splash-1242-2688.jpg diff --git a/crm/public/manifest/apple-splash-1284-2778.jpg b/next_crm/public/manifest/apple-splash-1284-2778.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1284-2778.jpg rename to next_crm/public/manifest/apple-splash-1284-2778.jpg diff --git a/crm/public/manifest/apple-splash-1290-2796.jpg b/next_crm/public/manifest/apple-splash-1290-2796.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1290-2796.jpg rename to next_crm/public/manifest/apple-splash-1290-2796.jpg diff --git a/crm/public/manifest/apple-splash-1334-750.jpg b/next_crm/public/manifest/apple-splash-1334-750.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1334-750.jpg rename to next_crm/public/manifest/apple-splash-1334-750.jpg diff --git a/crm/public/manifest/apple-splash-1488-2266.jpg b/next_crm/public/manifest/apple-splash-1488-2266.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1488-2266.jpg rename to next_crm/public/manifest/apple-splash-1488-2266.jpg diff --git a/crm/public/manifest/apple-splash-1536-2048.jpg b/next_crm/public/manifest/apple-splash-1536-2048.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1536-2048.jpg rename to next_crm/public/manifest/apple-splash-1536-2048.jpg diff --git a/crm/public/manifest/apple-splash-1620-2160.jpg b/next_crm/public/manifest/apple-splash-1620-2160.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1620-2160.jpg rename to next_crm/public/manifest/apple-splash-1620-2160.jpg diff --git a/crm/public/manifest/apple-splash-1640-2360.jpg b/next_crm/public/manifest/apple-splash-1640-2360.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1640-2360.jpg rename to next_crm/public/manifest/apple-splash-1640-2360.jpg diff --git a/crm/public/manifest/apple-splash-1668-2224.jpg b/next_crm/public/manifest/apple-splash-1668-2224.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1668-2224.jpg rename to next_crm/public/manifest/apple-splash-1668-2224.jpg diff --git a/crm/public/manifest/apple-splash-1668-2388.jpg b/next_crm/public/manifest/apple-splash-1668-2388.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1668-2388.jpg rename to next_crm/public/manifest/apple-splash-1668-2388.jpg diff --git a/crm/public/manifest/apple-splash-1792-828.jpg b/next_crm/public/manifest/apple-splash-1792-828.jpg similarity index 100% rename from crm/public/manifest/apple-splash-1792-828.jpg rename to next_crm/public/manifest/apple-splash-1792-828.jpg diff --git a/crm/public/manifest/apple-splash-2048-1536.jpg b/next_crm/public/manifest/apple-splash-2048-1536.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2048-1536.jpg rename to next_crm/public/manifest/apple-splash-2048-1536.jpg diff --git a/crm/public/manifest/apple-splash-2048-2732.jpg b/next_crm/public/manifest/apple-splash-2048-2732.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2048-2732.jpg rename to next_crm/public/manifest/apple-splash-2048-2732.jpg diff --git a/crm/public/manifest/apple-splash-2160-1620.jpg b/next_crm/public/manifest/apple-splash-2160-1620.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2160-1620.jpg rename to next_crm/public/manifest/apple-splash-2160-1620.jpg diff --git a/crm/public/manifest/apple-splash-2208-1242.jpg b/next_crm/public/manifest/apple-splash-2208-1242.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2208-1242.jpg rename to next_crm/public/manifest/apple-splash-2208-1242.jpg diff --git a/crm/public/manifest/apple-splash-2224-1668.jpg b/next_crm/public/manifest/apple-splash-2224-1668.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2224-1668.jpg rename to next_crm/public/manifest/apple-splash-2224-1668.jpg diff --git a/crm/public/manifest/apple-splash-2266-1488.jpg b/next_crm/public/manifest/apple-splash-2266-1488.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2266-1488.jpg rename to next_crm/public/manifest/apple-splash-2266-1488.jpg diff --git a/crm/public/manifest/apple-splash-2360-1640.jpg b/next_crm/public/manifest/apple-splash-2360-1640.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2360-1640.jpg rename to next_crm/public/manifest/apple-splash-2360-1640.jpg diff --git a/crm/public/manifest/apple-splash-2388-1668.jpg b/next_crm/public/manifest/apple-splash-2388-1668.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2388-1668.jpg rename to next_crm/public/manifest/apple-splash-2388-1668.jpg diff --git a/crm/public/manifest/apple-splash-2436-1125.jpg b/next_crm/public/manifest/apple-splash-2436-1125.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2436-1125.jpg rename to next_crm/public/manifest/apple-splash-2436-1125.jpg diff --git a/crm/public/manifest/apple-splash-2532-1170.jpg b/next_crm/public/manifest/apple-splash-2532-1170.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2532-1170.jpg rename to next_crm/public/manifest/apple-splash-2532-1170.jpg diff --git a/crm/public/manifest/apple-splash-2556-1179.jpg b/next_crm/public/manifest/apple-splash-2556-1179.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2556-1179.jpg rename to next_crm/public/manifest/apple-splash-2556-1179.jpg diff --git a/crm/public/manifest/apple-splash-2688-1242.jpg b/next_crm/public/manifest/apple-splash-2688-1242.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2688-1242.jpg rename to next_crm/public/manifest/apple-splash-2688-1242.jpg diff --git a/crm/public/manifest/apple-splash-2732-2048.jpg b/next_crm/public/manifest/apple-splash-2732-2048.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2732-2048.jpg rename to next_crm/public/manifest/apple-splash-2732-2048.jpg diff --git a/crm/public/manifest/apple-splash-2778-1284.jpg b/next_crm/public/manifest/apple-splash-2778-1284.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2778-1284.jpg rename to next_crm/public/manifest/apple-splash-2778-1284.jpg diff --git a/crm/public/manifest/apple-splash-2796-1290.jpg b/next_crm/public/manifest/apple-splash-2796-1290.jpg similarity index 100% rename from crm/public/manifest/apple-splash-2796-1290.jpg rename to next_crm/public/manifest/apple-splash-2796-1290.jpg diff --git a/crm/public/manifest/apple-splash-640-1136.jpg b/next_crm/public/manifest/apple-splash-640-1136.jpg similarity index 100% rename from crm/public/manifest/apple-splash-640-1136.jpg rename to next_crm/public/manifest/apple-splash-640-1136.jpg diff --git a/crm/public/manifest/apple-splash-750-1334.jpg b/next_crm/public/manifest/apple-splash-750-1334.jpg similarity index 100% rename from crm/public/manifest/apple-splash-750-1334.jpg rename to next_crm/public/manifest/apple-splash-750-1334.jpg diff --git a/crm/public/manifest/apple-splash-828-1792.jpg b/next_crm/public/manifest/apple-splash-828-1792.jpg similarity index 100% rename from crm/public/manifest/apple-splash-828-1792.jpg rename to next_crm/public/manifest/apple-splash-828-1792.jpg diff --git a/crm/public/manifest/manifest-icon-192.maskable.png b/next_crm/public/manifest/manifest-icon-192.maskable.png similarity index 100% rename from crm/public/manifest/manifest-icon-192.maskable.png rename to next_crm/public/manifest/manifest-icon-192.maskable.png diff --git a/crm/public/manifest/manifest-icon-512.maskable.png b/next_crm/public/manifest/manifest-icon-512.maskable.png similarity index 100% rename from crm/public/manifest/manifest-icon-512.maskable.png rename to next_crm/public/manifest/manifest-icon-512.maskable.png diff --git a/crm/templates/__init__.py b/next_crm/templates/__init__.py similarity index 100% rename from crm/templates/__init__.py rename to next_crm/templates/__init__.py diff --git a/crm/templates/emails/crm_invitation.html b/next_crm/templates/emails/crm_invitation.html similarity index 62% rename from crm/templates/emails/crm_invitation.html rename to next_crm/templates/emails/crm_invitation.html index 3e74b1d1d..07770f0c1 100644 --- a/crm/templates/emails/crm_invitation.html +++ b/next_crm/templates/emails/crm_invitation.html @@ -1,4 +1,4 @@ -

You have been invited to join Frappe CRM

+

You have been invited to join Next CRM

Accept Invitation

diff --git a/crm/templates/pages/__init__.py b/next_crm/templates/pages/__init__.py similarity index 100% rename from crm/templates/pages/__init__.py rename to next_crm/templates/pages/__init__.py diff --git a/crm/uninstall.py b/next_crm/uninstall.py similarity index 100% rename from crm/uninstall.py rename to next_crm/uninstall.py diff --git a/crm/www/__init__.py b/next_crm/www/__init__.py similarity index 100% rename from crm/www/__init__.py rename to next_crm/www/__init__.py diff --git a/crm/www/crm.py b/next_crm/www/next-crm.py similarity index 93% rename from crm/www/crm.py rename to next_crm/www/next-crm.py index 22b2ed588..8962e3d29 100644 --- a/crm/www/crm.py +++ b/next_crm/www/next-crm.py @@ -13,7 +13,7 @@ def get_context(): context = frappe._dict() context.boot = get_boot() if frappe.session.user != "Guest": - capture("active_site", "crm") + capture("active_site", "next-crm") return context @@ -37,4 +37,4 @@ def get_boot(): def get_default_route(): - return "/crm" + return "/next-crm" diff --git a/pyproject.toml b/pyproject.toml index a07fd6863..f14a1a5cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] -name = "crm" +name = "next_crm" authors = [ - { name = "Frappe Technologies Pvt. Ltd.", email = "shariq@frappe.io"} + { name = "rtCamp", email = "erp@rtcamp.com"} ] description = "Kick-ass Open Source CRM" requires-python = ">=3.10"