From f0ad4d5172dd0785e364f1c6a7c36f2dcca7cc9f Mon Sep 17 00:00:00 2001 From: jingrow Date: Thu, 23 Oct 2025 20:49:43 +0800 Subject: [PATCH] =?UTF-8?q?document=E9=87=8D=E5=91=BD=E5=90=8D=E4=B8=BApag?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crm_communication_status/crm_communication_status.py | 9 --------- crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.py | 9 --------- .../crm_service_level_priority.py | 9 --------- crm/fcrm/{doctype => pagetype}/__init__.py | 0 crm/fcrm/{doctype => pagetype}/crm_call_log/__init__.py | 0 .../{doctype => pagetype}/crm_call_log/crm_call_log.js | 0 .../{doctype => pagetype}/crm_call_log/crm_call_log.json | 0 .../{doctype => pagetype}/crm_call_log/crm_call_log.py | 4 ++-- .../crm_call_log/test_crm_call_log.py | 0 .../crm_communication_status/__init__.py | 0 .../crm_communication_status/crm_communication_status.js | 0 .../crm_communication_status.json | 0 .../crm_communication_status/crm_communication_status.py | 9 +++++++++ .../test_crm_communication_status.py | 0 crm/fcrm/{doctype => pagetype}/crm_contacts/__init__.py | 0 .../{doctype => pagetype}/crm_contacts/crm_contacts.json | 0 .../{doctype => pagetype}/crm_contacts/crm_contacts.py | 4 ++-- crm/fcrm/{doctype => pagetype}/crm_dashboard/__init__.py | 0 .../{doctype => pagetype}/crm_dashboard/crm_dashboard.js | 0 .../crm_dashboard/crm_dashboard.json | 0 .../{doctype => pagetype}/crm_dashboard/crm_dashboard.py | 4 ++-- .../crm_dashboard/test_crm_dashboard.py | 0 crm/fcrm/{doctype => pagetype}/crm_deal/__init__.py | 0 crm/fcrm/{doctype => pagetype}/crm_deal/api.py | 0 crm/fcrm/{doctype => pagetype}/crm_deal/crm_deal.js | 0 crm/fcrm/{doctype => pagetype}/crm_deal/crm_deal.json | 0 crm/fcrm/{doctype => pagetype}/crm_deal/crm_deal.py | 4 ++-- crm/fcrm/{doctype => pagetype}/crm_deal/test_crm_deal.py | 0 .../{doctype => pagetype}/crm_deal_status/__init__.py | 0 .../crm_deal_status/crm_deal_status.js | 0 .../crm_deal_status/crm_deal_status.json | 0 .../crm_deal_status/crm_deal_status.py | 4 ++-- .../crm_deal_status/test_crm_deal_status.py | 0 .../{doctype => pagetype}/crm_dropdown_item/__init__.py | 0 .../crm_dropdown_item/crm_dropdown_item.json | 0 .../crm_dropdown_item/crm_dropdown_item.py | 4 ++-- .../crm_exotel_settings/__init__.py | 0 .../crm_exotel_settings/crm_exotel_settings.js | 0 .../crm_exotel_settings/crm_exotel_settings.json | 0 .../crm_exotel_settings/crm_exotel_settings.py | 4 ++-- .../crm_exotel_settings/test_crm_exotel_settings.py | 0 .../{doctype => pagetype}/crm_fields_layout/__init__.py | 0 .../crm_fields_layout/crm_fields_layout.js | 0 .../crm_fields_layout/crm_fields_layout.json | 0 .../crm_fields_layout/crm_fields_layout.py | 4 ++-- .../crm_fields_layout/test_crm_fields_layout.py | 0 .../{doctype => pagetype}/crm_form_script/__init__.py | 0 .../crm_form_script/crm_form_script.js | 0 .../crm_form_script/crm_form_script.json | 0 .../crm_form_script/crm_form_script.py | 4 ++-- .../crm_form_script/test_crm_form_script.py | 0 .../crm_global_settings/__init__.py | 0 .../crm_global_settings/crm_global_settings.js | 0 .../crm_global_settings/crm_global_settings.json | 0 .../crm_global_settings/crm_global_settings.py | 4 ++-- .../crm_global_settings/test_crm_global_settings.py | 0 crm/fcrm/{doctype => pagetype}/crm_holiday/__init__.py | 0 .../{doctype => pagetype}/crm_holiday/crm_holiday.json | 0 .../{doctype => pagetype}/crm_holiday/crm_holiday.py | 4 ++-- .../{doctype => pagetype}/crm_holiday_list/__init__.py | 0 .../crm_holiday_list/crm_holiday_list.js | 0 .../crm_holiday_list/crm_holiday_list.json | 0 crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.py | 9 +++++++++ .../crm_holiday_list/test_crm_holiday_list.py | 0 crm/fcrm/{doctype => pagetype}/crm_industry/__init__.py | 0 .../{doctype => pagetype}/crm_industry/crm_industry.js | 0 .../{doctype => pagetype}/crm_industry/crm_industry.json | 0 .../{doctype => pagetype}/crm_industry/crm_industry.py | 4 ++-- .../crm_industry/test_crm_industry.py | 0 .../{doctype => pagetype}/crm_invitation/__init__.py | 0 .../crm_invitation/crm_invitation.js | 0 .../crm_invitation/crm_invitation.json | 0 .../crm_invitation/crm_invitation.py | 4 ++-- .../crm_invitation/test_crm_invitation.py | 0 crm/fcrm/{doctype => pagetype}/crm_lead/__init__.py | 0 crm/fcrm/{doctype => pagetype}/crm_lead/crm_lead.js | 0 crm/fcrm/{doctype => pagetype}/crm_lead/crm_lead.json | 0 crm/fcrm/{doctype => pagetype}/crm_lead/crm_lead.py | 4 ++-- crm/fcrm/{doctype => pagetype}/crm_lead/test_crm_lead.py | 0 .../{doctype => pagetype}/crm_lead_source/__init__.py | 0 .../crm_lead_source/crm_lead_source.js | 0 .../crm_lead_source/crm_lead_source.json | 0 .../crm_lead_source/crm_lead_source.py | 4 ++-- .../crm_lead_source/test_crm_lead_source.py | 0 .../{doctype => pagetype}/crm_lead_status/__init__.py | 0 .../crm_lead_status/crm_lead_status.js | 0 .../crm_lead_status/crm_lead_status.json | 0 .../crm_lead_status/crm_lead_status.py | 4 ++-- .../crm_lead_status/test_crm_lead_status.py | 0 .../{doctype => pagetype}/crm_lost_reason/__init__.py | 0 .../crm_lost_reason/crm_lost_reason.js | 0 .../crm_lost_reason/crm_lost_reason.json | 0 .../crm_lost_reason/crm_lost_reason.py | 4 ++-- .../crm_lost_reason/test_crm_lost_reason.py | 0 .../{doctype => pagetype}/crm_notification/__init__.py | 0 .../crm_notification/crm_notification.js | 0 .../crm_notification/crm_notification.json | 0 .../crm_notification/crm_notification.py | 4 ++-- .../crm_notification/test_crm_notification.py | 0 .../{doctype => pagetype}/crm_organization/__init__.py | 0 .../crm_organization/crm_organization.js | 0 .../crm_organization/crm_organization.json | 0 .../crm_organization/crm_organization.py | 4 ++-- .../crm_organization/test_crm_organization.py | 0 crm/fcrm/{doctype => pagetype}/crm_product/__init__.py | 0 .../{doctype => pagetype}/crm_product/crm_product.js | 0 .../{doctype => pagetype}/crm_product/crm_product.json | 0 .../{doctype => pagetype}/crm_product/crm_product.py | 4 ++-- .../crm_product/test_crm_product.py | 0 crm/fcrm/{doctype => pagetype}/crm_products/__init__.py | 0 .../{doctype => pagetype}/crm_products/crm_products.json | 0 .../{doctype => pagetype}/crm_products/crm_products.py | 4 ++-- .../{doctype => pagetype}/crm_service_day/__init__.py | 0 .../crm_service_day/crm_service_day.json | 0 .../crm_service_day/crm_service_day.py | 4 ++-- .../crm_service_level_agreement/__init__.py | 0 .../crm_service_level_agreement.js | 0 .../crm_service_level_agreement.json | 0 .../crm_service_level_agreement.py | 4 ++-- .../test_crm_service_level_agreement.py | 0 .../crm_service_level_agreement/utils.py | 2 +- .../crm_service_level_priority/__init__.py | 0 .../crm_service_level_priority.js | 0 .../crm_service_level_priority.json | 0 .../crm_service_level_priority.py | 9 +++++++++ .../test_crm_service_level_priority.py | 0 .../crm_status_change_log/__init__.py | 0 .../crm_status_change_log/crm_status_change_log.json | 0 .../crm_status_change_log/crm_status_change_log.py | 4 ++-- crm/fcrm/{doctype => pagetype}/crm_task/__init__.py | 0 crm/fcrm/{doctype => pagetype}/crm_task/crm_task.js | 0 crm/fcrm/{doctype => pagetype}/crm_task/crm_task.json | 0 crm/fcrm/{doctype => pagetype}/crm_task/crm_task.py | 4 ++-- crm/fcrm/{doctype => pagetype}/crm_task/test_crm_task.py | 0 .../crm_telephony_agent/__init__.py | 0 .../crm_telephony_agent/crm_telephony_agent.js | 0 .../crm_telephony_agent/crm_telephony_agent.json | 0 .../crm_telephony_agent/crm_telephony_agent.py | 4 ++-- .../crm_telephony_agent/test_crm_telephony_agent.py | 0 .../crm_telephony_phone/__init__.py | 0 .../crm_telephony_phone/crm_telephony_phone.json | 0 .../crm_telephony_phone/crm_telephony_phone.py | 4 ++-- crm/fcrm/{doctype => pagetype}/crm_territory/__init__.py | 0 .../{doctype => pagetype}/crm_territory/crm_territory.js | 0 .../crm_territory/crm_territory.json | 0 .../{doctype => pagetype}/crm_territory/crm_territory.py | 4 ++-- .../crm_territory/test_crm_territory.py | 0 .../crm_twilio_settings/__init__.py | 0 .../crm_twilio_settings/crm_twilio_settings.js | 0 .../crm_twilio_settings/crm_twilio_settings.json | 0 .../crm_twilio_settings/crm_twilio_settings.py | 4 ++-- .../crm_twilio_settings/test_crm_twilio_settings.py | 0 .../{doctype => pagetype}/crm_view_settings/__init__.py | 0 .../crm_view_settings/crm_view_settings.js | 0 .../crm_view_settings/crm_view_settings.json | 0 .../crm_view_settings/crm_view_settings.py | 4 ++-- .../crm_view_settings/test_crm_view_settings.py | 0 .../erpnext_crm_settings/__init__.py | 0 .../erpnext_crm_settings/erpnext_crm_settings.js | 0 .../erpnext_crm_settings/erpnext_crm_settings.json | 0 .../erpnext_crm_settings/erpnext_crm_settings.py | 4 ++-- .../erpnext_crm_settings/test_erpnext_crm_settings.py | 0 crm/fcrm/{doctype => pagetype}/fcrm_note/__init__.py | 0 crm/fcrm/{doctype => pagetype}/fcrm_note/fcrm_note.js | 0 crm/fcrm/{doctype => pagetype}/fcrm_note/fcrm_note.json | 0 crm/fcrm/{doctype => pagetype}/fcrm_note/fcrm_note.py | 4 ++-- .../{doctype => pagetype}/fcrm_note/test_fcrm_note.py | 0 crm/fcrm/{doctype => pagetype}/fcrm_settings/__init__.py | 0 .../{doctype => pagetype}/fcrm_settings/fcrm_settings.js | 0 .../fcrm_settings/fcrm_settings.json | 0 .../{doctype => pagetype}/fcrm_settings/fcrm_settings.py | 4 ++-- .../fcrm_settings/test_fcrm_settings.py | 0 172 files changed, 94 insertions(+), 94 deletions(-) delete mode 100644 crm/fcrm/doctype/crm_communication_status/crm_communication_status.py delete mode 100644 crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.py delete mode 100644 crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.py rename crm/fcrm/{doctype => pagetype}/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_call_log/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_call_log/crm_call_log.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_call_log/crm_call_log.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_call_log/crm_call_log.py (98%) rename crm/fcrm/{doctype => pagetype}/crm_call_log/test_crm_call_log.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_communication_status/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_communication_status/crm_communication_status.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_communication_status/crm_communication_status.json (100%) create mode 100644 crm/fcrm/pagetype/crm_communication_status/crm_communication_status.py rename crm/fcrm/{doctype => pagetype}/crm_communication_status/test_crm_communication_status.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_contacts/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_contacts/crm_contacts.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_contacts/crm_contacts.py (62%) rename crm/fcrm/{doctype => pagetype}/crm_dashboard/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_dashboard/crm_dashboard.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_dashboard/crm_dashboard.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_dashboard/crm_dashboard.py (97%) rename crm/fcrm/{doctype => pagetype}/crm_dashboard/test_crm_dashboard.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal/api.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal/crm_deal.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal/crm_deal.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal/crm_deal.py (99%) rename crm/fcrm/{doctype => pagetype}/crm_deal/test_crm_deal.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal_status/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal_status/crm_deal_status.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal_status/crm_deal_status.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_deal_status/crm_deal_status.py (62%) rename crm/fcrm/{doctype => pagetype}/crm_deal_status/test_crm_deal_status.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_dropdown_item/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_dropdown_item/crm_dropdown_item.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_dropdown_item/crm_dropdown_item.py (61%) rename crm/fcrm/{doctype => pagetype}/crm_exotel_settings/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_exotel_settings/crm_exotel_settings.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_exotel_settings/crm_exotel_settings.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_exotel_settings/crm_exotel_settings.py (89%) rename crm/fcrm/{doctype => pagetype}/crm_exotel_settings/test_crm_exotel_settings.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_fields_layout/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_fields_layout/crm_fields_layout.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_fields_layout/crm_fields_layout.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_fields_layout/crm_fields_layout.py (99%) rename crm/fcrm/{doctype => pagetype}/crm_fields_layout/test_crm_fields_layout.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_form_script/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_form_script/crm_form_script.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_form_script/crm_form_script.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_form_script/crm_form_script.py (93%) rename crm/fcrm/{doctype => pagetype}/crm_form_script/test_crm_form_script.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_global_settings/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_global_settings/crm_global_settings.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_global_settings/crm_global_settings.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_global_settings/crm_global_settings.py (60%) rename crm/fcrm/{doctype => pagetype}/crm_global_settings/test_crm_global_settings.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_holiday/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_holiday/crm_holiday.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_holiday/crm_holiday.py (63%) rename crm/fcrm/{doctype => pagetype}/crm_holiday_list/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_holiday_list/crm_holiday_list.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_holiday_list/crm_holiday_list.json (100%) create mode 100644 crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.py rename crm/fcrm/{doctype => pagetype}/crm_holiday_list/test_crm_holiday_list.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_industry/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_industry/crm_industry.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_industry/crm_industry.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_industry/crm_industry.py (62%) rename crm/fcrm/{doctype => pagetype}/crm_industry/test_crm_industry.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_invitation/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_invitation/crm_invitation.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_invitation/crm_invitation.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_invitation/crm_invitation.py (97%) rename crm/fcrm/{doctype => pagetype}/crm_invitation/test_crm_invitation.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead/crm_lead.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead/crm_lead.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead/crm_lead.py (99%) rename crm/fcrm/{doctype => pagetype}/crm_lead/test_crm_lead.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead_source/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead_source/crm_lead_source.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead_source/crm_lead_source.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead_source/crm_lead_source.py (62%) rename crm/fcrm/{doctype => pagetype}/crm_lead_source/test_crm_lead_source.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead_status/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead_status/crm_lead_status.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead_status/crm_lead_status.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_lead_status/crm_lead_status.py (62%) rename crm/fcrm/{doctype => pagetype}/crm_lead_status/test_crm_lead_status.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_lost_reason/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_lost_reason/crm_lost_reason.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_lost_reason/crm_lost_reason.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_lost_reason/crm_lost_reason.py (62%) rename crm/fcrm/{doctype => pagetype}/crm_lost_reason/test_crm_lost_reason.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_notification/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_notification/crm_notification.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_notification/crm_notification.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_notification/crm_notification.py (92%) rename crm/fcrm/{doctype => pagetype}/crm_notification/test_crm_notification.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_organization/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_organization/crm_organization.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_organization/crm_organization.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_organization/crm_organization.py (94%) rename crm/fcrm/{doctype => pagetype}/crm_organization/test_crm_organization.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_product/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_product/crm_product.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_product/crm_product.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_product/crm_product.py (81%) rename crm/fcrm/{doctype => pagetype}/crm_product/test_crm_product.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_products/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_products/crm_products.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_products/crm_products.py (97%) rename crm/fcrm/{doctype => pagetype}/crm_service_day/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_service_day/crm_service_day.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_service_day/crm_service_day.py (62%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_agreement/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_agreement/crm_service_level_agreement.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_agreement/crm_service_level_agreement.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_agreement/crm_service_level_agreement.py (98%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_agreement/test_crm_service_level_agreement.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_agreement/utils.py (97%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_priority/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_priority/crm_service_level_priority.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_service_level_priority/crm_service_level_priority.json (100%) create mode 100644 crm/fcrm/pagetype/crm_service_level_priority/crm_service_level_priority.py rename crm/fcrm/{doctype => pagetype}/crm_service_level_priority/test_crm_service_level_priority.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_status_change_log/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_status_change_log/crm_status_change_log.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_status_change_log/crm_status_change_log.py (95%) rename crm/fcrm/{doctype => pagetype}/crm_task/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_task/crm_task.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_task/crm_task.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_task/crm_task.py (96%) rename crm/fcrm/{doctype => pagetype}/crm_task/test_crm_task.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_telephony_agent/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_telephony_agent/crm_telephony_agent.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_telephony_agent/crm_telephony_agent.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_telephony_agent/crm_telephony_agent.py (90%) rename crm/fcrm/{doctype => pagetype}/crm_telephony_agent/test_crm_telephony_agent.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_telephony_phone/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_telephony_phone/crm_telephony_phone.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_telephony_phone/crm_telephony_phone.py (60%) rename crm/fcrm/{doctype => pagetype}/crm_territory/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_territory/crm_territory.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_territory/crm_territory.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_territory/crm_territory.py (62%) rename crm/fcrm/{doctype => pagetype}/crm_territory/test_crm_territory.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_twilio_settings/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_twilio_settings/crm_twilio_settings.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_twilio_settings/crm_twilio_settings.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_twilio_settings/crm_twilio_settings.py (97%) rename crm/fcrm/{doctype => pagetype}/crm_twilio_settings/test_crm_twilio_settings.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_view_settings/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/crm_view_settings/crm_view_settings.js (100%) rename crm/fcrm/{doctype => pagetype}/crm_view_settings/crm_view_settings.json (100%) rename crm/fcrm/{doctype => pagetype}/crm_view_settings/crm_view_settings.py (98%) rename crm/fcrm/{doctype => pagetype}/crm_view_settings/test_crm_view_settings.py (100%) rename crm/fcrm/{doctype => pagetype}/erpnext_crm_settings/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/erpnext_crm_settings/erpnext_crm_settings.js (100%) rename crm/fcrm/{doctype => pagetype}/erpnext_crm_settings/erpnext_crm_settings.json (100%) rename crm/fcrm/{doctype => pagetype}/erpnext_crm_settings/erpnext_crm_settings.py (99%) rename crm/fcrm/{doctype => pagetype}/erpnext_crm_settings/test_erpnext_crm_settings.py (100%) rename crm/fcrm/{doctype => pagetype}/fcrm_note/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/fcrm_note/fcrm_note.js (100%) rename crm/fcrm/{doctype => pagetype}/fcrm_note/fcrm_note.json (100%) rename crm/fcrm/{doctype => pagetype}/fcrm_note/fcrm_note.py (82%) rename crm/fcrm/{doctype => pagetype}/fcrm_note/test_fcrm_note.py (100%) rename crm/fcrm/{doctype => pagetype}/fcrm_settings/__init__.py (100%) rename crm/fcrm/{doctype => pagetype}/fcrm_settings/fcrm_settings.js (100%) rename crm/fcrm/{doctype => pagetype}/fcrm_settings/fcrm_settings.json (100%) rename crm/fcrm/{doctype => pagetype}/fcrm_settings/fcrm_settings.py (98%) rename crm/fcrm/{doctype => pagetype}/fcrm_settings/test_fcrm_settings.py (100%) diff --git a/crm/fcrm/doctype/crm_communication_status/crm_communication_status.py b/crm/fcrm/doctype/crm_communication_status/crm_communication_status.py deleted file mode 100644 index 71f346b1..00000000 --- a/crm/fcrm/doctype/crm_communication_status/crm_communication_status.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023, JINGROW and contributors -# For license information, please see license.txt - -# import jingrow -from jingrow.model.document import Document - - -class CRMCommunicationStatus(Document): - pass diff --git a/crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.py b/crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.py deleted file mode 100644 index e4e7d4aa..00000000 --- a/crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023, JINGROW and contributors -# For license information, please see license.txt - -# import jingrow -from jingrow.model.document import Document - - -class CRMHolidayList(Document): - pass diff --git a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.py b/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.py deleted file mode 100644 index fe373cc5..00000000 --- a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023, JINGROW and contributors -# For license information, please see license.txt - -# import jingrow -from jingrow.model.document import Document - - -class CRMServiceLevelPriority(Document): - pass diff --git a/crm/fcrm/doctype/__init__.py b/crm/fcrm/pagetype/__init__.py similarity index 100% rename from crm/fcrm/doctype/__init__.py rename to crm/fcrm/pagetype/__init__.py diff --git a/crm/fcrm/doctype/crm_call_log/__init__.py b/crm/fcrm/pagetype/crm_call_log/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_call_log/__init__.py rename to crm/fcrm/pagetype/crm_call_log/__init__.py diff --git a/crm/fcrm/doctype/crm_call_log/crm_call_log.js b/crm/fcrm/pagetype/crm_call_log/crm_call_log.js similarity index 100% rename from crm/fcrm/doctype/crm_call_log/crm_call_log.js rename to crm/fcrm/pagetype/crm_call_log/crm_call_log.js diff --git a/crm/fcrm/doctype/crm_call_log/crm_call_log.json b/crm/fcrm/pagetype/crm_call_log/crm_call_log.json similarity index 100% rename from crm/fcrm/doctype/crm_call_log/crm_call_log.json rename to crm/fcrm/pagetype/crm_call_log/crm_call_log.json diff --git a/crm/fcrm/doctype/crm_call_log/crm_call_log.py b/crm/fcrm/pagetype/crm_call_log/crm_call_log.py similarity index 98% rename from crm/fcrm/doctype/crm_call_log/crm_call_log.py rename to crm/fcrm/pagetype/crm_call_log/crm_call_log.py index e27bb3eb..22cbf5b3 100644 --- a/crm/fcrm/doctype/crm_call_log/crm_call_log.py +++ b/crm/fcrm/pagetype/crm_call_log/crm_call_log.py @@ -2,13 +2,13 @@ # For license information, please see license.txt import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page from crm.integrations.api import get_contact_by_phone_number from crm.utils import seconds_to_duration -class CRMCallLog(Document): +class CRMCallLog(Page): @staticmethod def default_list_data(): columns = [ diff --git a/crm/fcrm/doctype/crm_call_log/test_crm_call_log.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_call_log/test_crm_call_log.py diff --git a/crm/fcrm/doctype/crm_communication_status/__init__.py b/crm/fcrm/pagetype/crm_communication_status/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_communication_status/__init__.py rename to crm/fcrm/pagetype/crm_communication_status/__init__.py diff --git a/crm/fcrm/doctype/crm_communication_status/crm_communication_status.js b/crm/fcrm/pagetype/crm_communication_status/crm_communication_status.js similarity index 100% rename from crm/fcrm/doctype/crm_communication_status/crm_communication_status.js rename to crm/fcrm/pagetype/crm_communication_status/crm_communication_status.js diff --git a/crm/fcrm/doctype/crm_communication_status/crm_communication_status.json b/crm/fcrm/pagetype/crm_communication_status/crm_communication_status.json similarity index 100% rename from crm/fcrm/doctype/crm_communication_status/crm_communication_status.json rename to crm/fcrm/pagetype/crm_communication_status/crm_communication_status.json diff --git a/crm/fcrm/pagetype/crm_communication_status/crm_communication_status.py b/crm/fcrm/pagetype/crm_communication_status/crm_communication_status.py new file mode 100644 index 00000000..aebb4daa --- /dev/null +++ b/crm/fcrm/pagetype/crm_communication_status/crm_communication_status.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, JINGROW and contributors +# For license information, please see license.txt + +# import jingrow +from jingrow.model.page import Page + + +class CRMCommunicationStatus(Page): + pass diff --git a/crm/fcrm/doctype/crm_communication_status/test_crm_communication_status.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_communication_status/test_crm_communication_status.py diff --git a/crm/fcrm/doctype/crm_contacts/__init__.py b/crm/fcrm/pagetype/crm_contacts/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_contacts/__init__.py rename to crm/fcrm/pagetype/crm_contacts/__init__.py diff --git a/crm/fcrm/doctype/crm_contacts/crm_contacts.json b/crm/fcrm/pagetype/crm_contacts/crm_contacts.json similarity index 100% rename from crm/fcrm/doctype/crm_contacts/crm_contacts.json rename to crm/fcrm/pagetype/crm_contacts/crm_contacts.json diff --git a/crm/fcrm/doctype/crm_contacts/crm_contacts.py b/crm/fcrm/pagetype/crm_contacts/crm_contacts.py similarity index 62% rename from crm/fcrm/doctype/crm_contacts/crm_contacts.py rename to crm/fcrm/pagetype/crm_contacts/crm_contacts.py index b42cfcd4..eb09fee8 100644 --- a/crm/fcrm/doctype/crm_contacts/crm_contacts.py +++ b/crm/fcrm/pagetype/crm_contacts/crm_contacts.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMContacts(Document): +class CRMContacts(Page): pass diff --git a/crm/fcrm/doctype/crm_dashboard/__init__.py b/crm/fcrm/pagetype/crm_dashboard/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_dashboard/__init__.py rename to crm/fcrm/pagetype/crm_dashboard/__init__.py diff --git a/crm/fcrm/doctype/crm_dashboard/crm_dashboard.js b/crm/fcrm/pagetype/crm_dashboard/crm_dashboard.js similarity index 100% rename from crm/fcrm/doctype/crm_dashboard/crm_dashboard.js rename to crm/fcrm/pagetype/crm_dashboard/crm_dashboard.js diff --git a/crm/fcrm/doctype/crm_dashboard/crm_dashboard.json b/crm/fcrm/pagetype/crm_dashboard/crm_dashboard.json similarity index 100% rename from crm/fcrm/doctype/crm_dashboard/crm_dashboard.json rename to crm/fcrm/pagetype/crm_dashboard/crm_dashboard.json diff --git a/crm/fcrm/doctype/crm_dashboard/crm_dashboard.py b/crm/fcrm/pagetype/crm_dashboard/crm_dashboard.py similarity index 97% rename from crm/fcrm/doctype/crm_dashboard/crm_dashboard.py rename to crm/fcrm/pagetype/crm_dashboard/crm_dashboard.py index 1f900143..8dc9e712 100644 --- a/crm/fcrm/doctype/crm_dashboard/crm_dashboard.py +++ b/crm/fcrm/pagetype/crm_dashboard/crm_dashboard.py @@ -3,10 +3,10 @@ import jingrow from jingrow import _ -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMDashboard(Document): +class CRMDashboard(Page): pass diff --git a/crm/fcrm/doctype/crm_dashboard/test_crm_dashboard.py b/crm/fcrm/pagetype/crm_dashboard/test_crm_dashboard.py similarity index 100% rename from crm/fcrm/doctype/crm_dashboard/test_crm_dashboard.py rename to crm/fcrm/pagetype/crm_dashboard/test_crm_dashboard.py diff --git a/crm/fcrm/doctype/crm_deal/__init__.py b/crm/fcrm/pagetype/crm_deal/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_deal/__init__.py rename to crm/fcrm/pagetype/crm_deal/__init__.py diff --git a/crm/fcrm/doctype/crm_deal/api.py b/crm/fcrm/pagetype/crm_deal/api.py similarity index 100% rename from crm/fcrm/doctype/crm_deal/api.py rename to crm/fcrm/pagetype/crm_deal/api.py diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.js b/crm/fcrm/pagetype/crm_deal/crm_deal.js similarity index 100% rename from crm/fcrm/doctype/crm_deal/crm_deal.js rename to crm/fcrm/pagetype/crm_deal/crm_deal.js diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.json b/crm/fcrm/pagetype/crm_deal/crm_deal.json similarity index 100% rename from crm/fcrm/doctype/crm_deal/crm_deal.json rename to crm/fcrm/pagetype/crm_deal/crm_deal.json diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.py b/crm/fcrm/pagetype/crm_deal/crm_deal.py similarity index 99% rename from crm/fcrm/doctype/crm_deal/crm_deal.py rename to crm/fcrm/pagetype/crm_deal/crm_deal.py index e35fba12..796109e2 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.py +++ b/crm/fcrm/pagetype/crm_deal/crm_deal.py @@ -4,14 +4,14 @@ import jingrow from jingrow import _ from jingrow.desk.form.assign_to import add as assign -from jingrow.model.document import Document +from jingrow.model.page import Page from crm.fcrm.pagetype.crm_service_level_agreement.utils import get_sla from crm.fcrm.pagetype.crm_status_change_log.crm_status_change_log import add_status_change_log from crm.fcrm.pagetype.fcrm_settings.fcrm_settings import get_exchange_rate -class CRMDeal(Document): +class CRMDeal(Page): def before_validate(self): self.set_sla() diff --git a/crm/fcrm/doctype/crm_deal/test_crm_deal.py b/crm/fcrm/pagetype/crm_deal/test_crm_deal.py similarity index 100% rename from crm/fcrm/doctype/crm_deal/test_crm_deal.py rename to crm/fcrm/pagetype/crm_deal/test_crm_deal.py diff --git a/crm/fcrm/doctype/crm_deal_status/__init__.py b/crm/fcrm/pagetype/crm_deal_status/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_deal_status/__init__.py rename to crm/fcrm/pagetype/crm_deal_status/__init__.py diff --git a/crm/fcrm/doctype/crm_deal_status/crm_deal_status.js b/crm/fcrm/pagetype/crm_deal_status/crm_deal_status.js similarity index 100% rename from crm/fcrm/doctype/crm_deal_status/crm_deal_status.js rename to crm/fcrm/pagetype/crm_deal_status/crm_deal_status.js diff --git a/crm/fcrm/doctype/crm_deal_status/crm_deal_status.json b/crm/fcrm/pagetype/crm_deal_status/crm_deal_status.json similarity index 100% rename from crm/fcrm/doctype/crm_deal_status/crm_deal_status.json rename to crm/fcrm/pagetype/crm_deal_status/crm_deal_status.json diff --git a/crm/fcrm/doctype/crm_deal_status/crm_deal_status.py b/crm/fcrm/pagetype/crm_deal_status/crm_deal_status.py similarity index 62% rename from crm/fcrm/doctype/crm_deal_status/crm_deal_status.py rename to crm/fcrm/pagetype/crm_deal_status/crm_deal_status.py index a32def5e..6a9287ec 100644 --- a/crm/fcrm/doctype/crm_deal_status/crm_deal_status.py +++ b/crm/fcrm/pagetype/crm_deal_status/crm_deal_status.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMDealStatus(Document): +class CRMDealStatus(Page): pass diff --git a/crm/fcrm/doctype/crm_deal_status/test_crm_deal_status.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_deal_status/test_crm_deal_status.py diff --git a/crm/fcrm/doctype/crm_dropdown_item/__init__.py b/crm/fcrm/pagetype/crm_dropdown_item/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_dropdown_item/__init__.py rename to crm/fcrm/pagetype/crm_dropdown_item/__init__.py diff --git a/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.json b/crm/fcrm/pagetype/crm_dropdown_item/crm_dropdown_item.json similarity index 100% rename from crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.json rename to crm/fcrm/pagetype/crm_dropdown_item/crm_dropdown_item.json diff --git a/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.py b/crm/fcrm/pagetype/crm_dropdown_item/crm_dropdown_item.py similarity index 61% rename from crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.py rename to crm/fcrm/pagetype/crm_dropdown_item/crm_dropdown_item.py index bce50d34..9d3a4a88 100644 --- a/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.py +++ b/crm/fcrm/pagetype/crm_dropdown_item/crm_dropdown_item.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMDropdownItem(Document): +class CRMDropdownItem(Page): pass diff --git a/crm/fcrm/doctype/crm_exotel_settings/__init__.py b/crm/fcrm/pagetype/crm_exotel_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_exotel_settings/__init__.py rename to crm/fcrm/pagetype/crm_exotel_settings/__init__.py diff --git a/crm/fcrm/doctype/crm_exotel_settings/crm_exotel_settings.js b/crm/fcrm/pagetype/crm_exotel_settings/crm_exotel_settings.js similarity index 100% rename from crm/fcrm/doctype/crm_exotel_settings/crm_exotel_settings.js rename to crm/fcrm/pagetype/crm_exotel_settings/crm_exotel_settings.js diff --git a/crm/fcrm/doctype/crm_exotel_settings/crm_exotel_settings.json b/crm/fcrm/pagetype/crm_exotel_settings/crm_exotel_settings.json similarity index 100% rename from crm/fcrm/doctype/crm_exotel_settings/crm_exotel_settings.json rename to crm/fcrm/pagetype/crm_exotel_settings/crm_exotel_settings.json diff --git a/crm/fcrm/doctype/crm_exotel_settings/crm_exotel_settings.py b/crm/fcrm/pagetype/crm_exotel_settings/crm_exotel_settings.py similarity index 89% rename from crm/fcrm/doctype/crm_exotel_settings/crm_exotel_settings.py rename to crm/fcrm/pagetype/crm_exotel_settings/crm_exotel_settings.py index c27131cf..94ac753b 100644 --- a/crm/fcrm/doctype/crm_exotel_settings/crm_exotel_settings.py +++ b/crm/fcrm/pagetype/crm_exotel_settings/crm_exotel_settings.py @@ -4,10 +4,10 @@ import jingrow import requests from jingrow import _ -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMExotelSettings(Document): +class CRMExotelSettings(Page): def validate(self): self.verify_credentials() diff --git a/crm/fcrm/doctype/crm_exotel_settings/test_crm_exotel_settings.py b/crm/fcrm/pagetype/crm_exotel_settings/test_crm_exotel_settings.py similarity index 100% rename from crm/fcrm/doctype/crm_exotel_settings/test_crm_exotel_settings.py rename to crm/fcrm/pagetype/crm_exotel_settings/test_crm_exotel_settings.py diff --git a/crm/fcrm/doctype/crm_fields_layout/__init__.py b/crm/fcrm/pagetype/crm_fields_layout/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_fields_layout/__init__.py rename to crm/fcrm/pagetype/crm_fields_layout/__init__.py diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.js b/crm/fcrm/pagetype/crm_fields_layout/crm_fields_layout.js similarity index 100% rename from crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.js rename to crm/fcrm/pagetype/crm_fields_layout/crm_fields_layout.js diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.json b/crm/fcrm/pagetype/crm_fields_layout/crm_fields_layout.json similarity index 100% rename from crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.json rename to crm/fcrm/pagetype/crm_fields_layout/crm_fields_layout.json diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py b/crm/fcrm/pagetype/crm_fields_layout/crm_fields_layout.py similarity index 99% rename from crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py rename to crm/fcrm/pagetype/crm_fields_layout/crm_fields_layout.py index 8faa95a8..10340011 100644 --- a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py +++ b/crm/fcrm/pagetype/crm_fields_layout/crm_fields_layout.py @@ -5,11 +5,11 @@ import json import jingrow from jingrow import _ -from jingrow.model.document import Document +from jingrow.model.page import Page from jingrow.utils import random_string -class CRMFieldsLayout(Document): +class CRMFieldsLayout(Page): pass diff --git a/crm/fcrm/doctype/crm_fields_layout/test_crm_fields_layout.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_fields_layout/test_crm_fields_layout.py diff --git a/crm/fcrm/doctype/crm_form_script/__init__.py b/crm/fcrm/pagetype/crm_form_script/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_form_script/__init__.py rename to crm/fcrm/pagetype/crm_form_script/__init__.py diff --git a/crm/fcrm/doctype/crm_form_script/crm_form_script.js b/crm/fcrm/pagetype/crm_form_script/crm_form_script.js similarity index 100% rename from crm/fcrm/doctype/crm_form_script/crm_form_script.js rename to crm/fcrm/pagetype/crm_form_script/crm_form_script.js diff --git a/crm/fcrm/doctype/crm_form_script/crm_form_script.json b/crm/fcrm/pagetype/crm_form_script/crm_form_script.json similarity index 100% rename from crm/fcrm/doctype/crm_form_script/crm_form_script.json rename to crm/fcrm/pagetype/crm_form_script/crm_form_script.json diff --git a/crm/fcrm/doctype/crm_form_script/crm_form_script.py b/crm/fcrm/pagetype/crm_form_script/crm_form_script.py similarity index 93% rename from crm/fcrm/doctype/crm_form_script/crm_form_script.py rename to crm/fcrm/pagetype/crm_form_script/crm_form_script.py index 8765d528..c5e61ffa 100644 --- a/crm/fcrm/doctype/crm_form_script/crm_form_script.py +++ b/crm/fcrm/pagetype/crm_form_script/crm_form_script.py @@ -3,10 +3,10 @@ import jingrow from jingrow import _ -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMFormScript(Document): +class CRMFormScript(Page): def validate(self): in_user_env = not ( jingrow.flags.in_install diff --git a/crm/fcrm/doctype/crm_form_script/test_crm_form_script.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_form_script/test_crm_form_script.py diff --git a/crm/fcrm/doctype/crm_global_settings/__init__.py b/crm/fcrm/pagetype/crm_global_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_global_settings/__init__.py rename to crm/fcrm/pagetype/crm_global_settings/__init__.py diff --git a/crm/fcrm/doctype/crm_global_settings/crm_global_settings.js b/crm/fcrm/pagetype/crm_global_settings/crm_global_settings.js similarity index 100% rename from crm/fcrm/doctype/crm_global_settings/crm_global_settings.js rename to crm/fcrm/pagetype/crm_global_settings/crm_global_settings.js diff --git a/crm/fcrm/doctype/crm_global_settings/crm_global_settings.json b/crm/fcrm/pagetype/crm_global_settings/crm_global_settings.json similarity index 100% rename from crm/fcrm/doctype/crm_global_settings/crm_global_settings.json rename to crm/fcrm/pagetype/crm_global_settings/crm_global_settings.json diff --git a/crm/fcrm/doctype/crm_global_settings/crm_global_settings.py b/crm/fcrm/pagetype/crm_global_settings/crm_global_settings.py similarity index 60% rename from crm/fcrm/doctype/crm_global_settings/crm_global_settings.py rename to crm/fcrm/pagetype/crm_global_settings/crm_global_settings.py index 22d077da..a59f876b 100644 --- a/crm/fcrm/doctype/crm_global_settings/crm_global_settings.py +++ b/crm/fcrm/pagetype/crm_global_settings/crm_global_settings.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMGlobalSettings(Document): +class CRMGlobalSettings(Page): pass diff --git a/crm/fcrm/doctype/crm_global_settings/test_crm_global_settings.py b/crm/fcrm/pagetype/crm_global_settings/test_crm_global_settings.py similarity index 100% rename from crm/fcrm/doctype/crm_global_settings/test_crm_global_settings.py rename to crm/fcrm/pagetype/crm_global_settings/test_crm_global_settings.py diff --git a/crm/fcrm/doctype/crm_holiday/__init__.py b/crm/fcrm/pagetype/crm_holiday/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_holiday/__init__.py rename to crm/fcrm/pagetype/crm_holiday/__init__.py diff --git a/crm/fcrm/doctype/crm_holiday/crm_holiday.json b/crm/fcrm/pagetype/crm_holiday/crm_holiday.json similarity index 100% rename from crm/fcrm/doctype/crm_holiday/crm_holiday.json rename to crm/fcrm/pagetype/crm_holiday/crm_holiday.json diff --git a/crm/fcrm/doctype/crm_holiday/crm_holiday.py b/crm/fcrm/pagetype/crm_holiday/crm_holiday.py similarity index 63% rename from crm/fcrm/doctype/crm_holiday/crm_holiday.py rename to crm/fcrm/pagetype/crm_holiday/crm_holiday.py index 7cbf4eca..2bae1b87 100644 --- a/crm/fcrm/doctype/crm_holiday/crm_holiday.py +++ b/crm/fcrm/pagetype/crm_holiday/crm_holiday.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMHoliday(Document): +class CRMHoliday(Page): pass diff --git a/crm/fcrm/doctype/crm_holiday_list/__init__.py b/crm/fcrm/pagetype/crm_holiday_list/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_holiday_list/__init__.py rename to crm/fcrm/pagetype/crm_holiday_list/__init__.py diff --git a/crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.js b/crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.js similarity index 100% rename from crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.js rename to crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.js diff --git a/crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.json b/crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.json similarity index 100% rename from crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.json rename to crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.json diff --git a/crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.py b/crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.py new file mode 100644 index 00000000..9da10cfc --- /dev/null +++ b/crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, JINGROW and contributors +# For license information, please see license.txt + +# import jingrow +from jingrow.model.page import Page + + +class CRMHolidayList(Page): + pass diff --git a/crm/fcrm/doctype/crm_holiday_list/test_crm_holiday_list.py b/crm/fcrm/pagetype/crm_holiday_list/test_crm_holiday_list.py similarity index 100% rename from crm/fcrm/doctype/crm_holiday_list/test_crm_holiday_list.py rename to crm/fcrm/pagetype/crm_holiday_list/test_crm_holiday_list.py diff --git a/crm/fcrm/doctype/crm_industry/__init__.py b/crm/fcrm/pagetype/crm_industry/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_industry/__init__.py rename to crm/fcrm/pagetype/crm_industry/__init__.py diff --git a/crm/fcrm/doctype/crm_industry/crm_industry.js b/crm/fcrm/pagetype/crm_industry/crm_industry.js similarity index 100% rename from crm/fcrm/doctype/crm_industry/crm_industry.js rename to crm/fcrm/pagetype/crm_industry/crm_industry.js diff --git a/crm/fcrm/doctype/crm_industry/crm_industry.json b/crm/fcrm/pagetype/crm_industry/crm_industry.json similarity index 100% rename from crm/fcrm/doctype/crm_industry/crm_industry.json rename to crm/fcrm/pagetype/crm_industry/crm_industry.json diff --git a/crm/fcrm/doctype/crm_industry/crm_industry.py b/crm/fcrm/pagetype/crm_industry/crm_industry.py similarity index 62% rename from crm/fcrm/doctype/crm_industry/crm_industry.py rename to crm/fcrm/pagetype/crm_industry/crm_industry.py index cce8dd96..1d79b416 100644 --- a/crm/fcrm/doctype/crm_industry/crm_industry.py +++ b/crm/fcrm/pagetype/crm_industry/crm_industry.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMIndustry(Document): +class CRMIndustry(Page): pass diff --git a/crm/fcrm/doctype/crm_industry/test_crm_industry.py b/crm/fcrm/pagetype/crm_industry/test_crm_industry.py similarity index 100% rename from crm/fcrm/doctype/crm_industry/test_crm_industry.py rename to crm/fcrm/pagetype/crm_industry/test_crm_industry.py diff --git a/crm/fcrm/doctype/crm_invitation/__init__.py b/crm/fcrm/pagetype/crm_invitation/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_invitation/__init__.py rename to crm/fcrm/pagetype/crm_invitation/__init__.py diff --git a/crm/fcrm/doctype/crm_invitation/crm_invitation.js b/crm/fcrm/pagetype/crm_invitation/crm_invitation.js similarity index 100% rename from crm/fcrm/doctype/crm_invitation/crm_invitation.js rename to crm/fcrm/pagetype/crm_invitation/crm_invitation.js diff --git a/crm/fcrm/doctype/crm_invitation/crm_invitation.json b/crm/fcrm/pagetype/crm_invitation/crm_invitation.json similarity index 100% rename from crm/fcrm/doctype/crm_invitation/crm_invitation.json rename to crm/fcrm/pagetype/crm_invitation/crm_invitation.json diff --git a/crm/fcrm/doctype/crm_invitation/crm_invitation.py b/crm/fcrm/pagetype/crm_invitation/crm_invitation.py similarity index 97% rename from crm/fcrm/doctype/crm_invitation/crm_invitation.py rename to crm/fcrm/pagetype/crm_invitation/crm_invitation.py index 56b8064e..a909aee0 100644 --- a/crm/fcrm/doctype/crm_invitation/crm_invitation.py +++ b/crm/fcrm/pagetype/crm_invitation/crm_invitation.py @@ -2,10 +2,10 @@ # For license information, please see license.txt import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMInvitation(Document): +class CRMInvitation(Page): def before_insert(self): jingrow.utils.validate_email_address(self.email, True) diff --git a/crm/fcrm/doctype/crm_invitation/test_crm_invitation.py b/crm/fcrm/pagetype/crm_invitation/test_crm_invitation.py similarity index 100% rename from crm/fcrm/doctype/crm_invitation/test_crm_invitation.py rename to crm/fcrm/pagetype/crm_invitation/test_crm_invitation.py diff --git a/crm/fcrm/doctype/crm_lead/__init__.py b/crm/fcrm/pagetype/crm_lead/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_lead/__init__.py rename to crm/fcrm/pagetype/crm_lead/__init__.py diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.js b/crm/fcrm/pagetype/crm_lead/crm_lead.js similarity index 100% rename from crm/fcrm/doctype/crm_lead/crm_lead.js rename to crm/fcrm/pagetype/crm_lead/crm_lead.js diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.json b/crm/fcrm/pagetype/crm_lead/crm_lead.json similarity index 100% rename from crm/fcrm/doctype/crm_lead/crm_lead.json rename to crm/fcrm/pagetype/crm_lead/crm_lead.json diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.py b/crm/fcrm/pagetype/crm_lead/crm_lead.py similarity index 99% rename from crm/fcrm/doctype/crm_lead/crm_lead.py rename to crm/fcrm/pagetype/crm_lead/crm_lead.py index 46a977c1..5e4b3e4e 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.py +++ b/crm/fcrm/pagetype/crm_lead/crm_lead.py @@ -4,7 +4,7 @@ import jingrow from jingrow import _ from jingrow.desk.form.assign_to import add as assign -from jingrow.model.document import Document +from jingrow.model.page import Page from jingrow.utils import has_gravatar, validate_email_address from crm.fcrm.pagetype.crm_service_level_agreement.utils import get_sla @@ -13,7 +13,7 @@ from crm.fcrm.pagetype.crm_status_change_log.crm_status_change_log import ( ) -class CRMLead(Document): +class CRMLead(Page): def before_validate(self): self.set_sla() diff --git a/crm/fcrm/doctype/crm_lead/test_crm_lead.py b/crm/fcrm/pagetype/crm_lead/test_crm_lead.py similarity index 100% rename from crm/fcrm/doctype/crm_lead/test_crm_lead.py rename to crm/fcrm/pagetype/crm_lead/test_crm_lead.py diff --git a/crm/fcrm/doctype/crm_lead_source/__init__.py b/crm/fcrm/pagetype/crm_lead_source/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_lead_source/__init__.py rename to crm/fcrm/pagetype/crm_lead_source/__init__.py diff --git a/crm/fcrm/doctype/crm_lead_source/crm_lead_source.js b/crm/fcrm/pagetype/crm_lead_source/crm_lead_source.js similarity index 100% rename from crm/fcrm/doctype/crm_lead_source/crm_lead_source.js rename to crm/fcrm/pagetype/crm_lead_source/crm_lead_source.js diff --git a/crm/fcrm/doctype/crm_lead_source/crm_lead_source.json b/crm/fcrm/pagetype/crm_lead_source/crm_lead_source.json similarity index 100% rename from crm/fcrm/doctype/crm_lead_source/crm_lead_source.json rename to crm/fcrm/pagetype/crm_lead_source/crm_lead_source.json diff --git a/crm/fcrm/doctype/crm_lead_source/crm_lead_source.py b/crm/fcrm/pagetype/crm_lead_source/crm_lead_source.py similarity index 62% rename from crm/fcrm/doctype/crm_lead_source/crm_lead_source.py rename to crm/fcrm/pagetype/crm_lead_source/crm_lead_source.py index e138e59a..918a720b 100644 --- a/crm/fcrm/doctype/crm_lead_source/crm_lead_source.py +++ b/crm/fcrm/pagetype/crm_lead_source/crm_lead_source.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMLeadSource(Document): +class CRMLeadSource(Page): pass diff --git a/crm/fcrm/doctype/crm_lead_source/test_crm_lead_source.py b/crm/fcrm/pagetype/crm_lead_source/test_crm_lead_source.py similarity index 100% rename from crm/fcrm/doctype/crm_lead_source/test_crm_lead_source.py rename to crm/fcrm/pagetype/crm_lead_source/test_crm_lead_source.py diff --git a/crm/fcrm/doctype/crm_lead_status/__init__.py b/crm/fcrm/pagetype/crm_lead_status/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_lead_status/__init__.py rename to crm/fcrm/pagetype/crm_lead_status/__init__.py diff --git a/crm/fcrm/doctype/crm_lead_status/crm_lead_status.js b/crm/fcrm/pagetype/crm_lead_status/crm_lead_status.js similarity index 100% rename from crm/fcrm/doctype/crm_lead_status/crm_lead_status.js rename to crm/fcrm/pagetype/crm_lead_status/crm_lead_status.js diff --git a/crm/fcrm/doctype/crm_lead_status/crm_lead_status.json b/crm/fcrm/pagetype/crm_lead_status/crm_lead_status.json similarity index 100% rename from crm/fcrm/doctype/crm_lead_status/crm_lead_status.json rename to crm/fcrm/pagetype/crm_lead_status/crm_lead_status.json diff --git a/crm/fcrm/doctype/crm_lead_status/crm_lead_status.py b/crm/fcrm/pagetype/crm_lead_status/crm_lead_status.py similarity index 62% rename from crm/fcrm/doctype/crm_lead_status/crm_lead_status.py rename to crm/fcrm/pagetype/crm_lead_status/crm_lead_status.py index 6c54d61c..ee392021 100644 --- a/crm/fcrm/doctype/crm_lead_status/crm_lead_status.py +++ b/crm/fcrm/pagetype/crm_lead_status/crm_lead_status.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMLeadStatus(Document): +class CRMLeadStatus(Page): pass diff --git a/crm/fcrm/doctype/crm_lead_status/test_crm_lead_status.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_lead_status/test_crm_lead_status.py diff --git a/crm/fcrm/doctype/crm_lost_reason/__init__.py b/crm/fcrm/pagetype/crm_lost_reason/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_lost_reason/__init__.py rename to crm/fcrm/pagetype/crm_lost_reason/__init__.py diff --git a/crm/fcrm/doctype/crm_lost_reason/crm_lost_reason.js b/crm/fcrm/pagetype/crm_lost_reason/crm_lost_reason.js similarity index 100% rename from crm/fcrm/doctype/crm_lost_reason/crm_lost_reason.js rename to crm/fcrm/pagetype/crm_lost_reason/crm_lost_reason.js diff --git a/crm/fcrm/doctype/crm_lost_reason/crm_lost_reason.json b/crm/fcrm/pagetype/crm_lost_reason/crm_lost_reason.json similarity index 100% rename from crm/fcrm/doctype/crm_lost_reason/crm_lost_reason.json rename to crm/fcrm/pagetype/crm_lost_reason/crm_lost_reason.json diff --git a/crm/fcrm/doctype/crm_lost_reason/crm_lost_reason.py b/crm/fcrm/pagetype/crm_lost_reason/crm_lost_reason.py similarity index 62% rename from crm/fcrm/doctype/crm_lost_reason/crm_lost_reason.py rename to crm/fcrm/pagetype/crm_lost_reason/crm_lost_reason.py index 8ca9efd9..e583f259 100644 --- a/crm/fcrm/doctype/crm_lost_reason/crm_lost_reason.py +++ b/crm/fcrm/pagetype/crm_lost_reason/crm_lost_reason.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMLostReason(Document): +class CRMLostReason(Page): pass diff --git a/crm/fcrm/doctype/crm_lost_reason/test_crm_lost_reason.py b/crm/fcrm/pagetype/crm_lost_reason/test_crm_lost_reason.py similarity index 100% rename from crm/fcrm/doctype/crm_lost_reason/test_crm_lost_reason.py rename to crm/fcrm/pagetype/crm_lost_reason/test_crm_lost_reason.py diff --git a/crm/fcrm/doctype/crm_notification/__init__.py b/crm/fcrm/pagetype/crm_notification/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_notification/__init__.py rename to crm/fcrm/pagetype/crm_notification/__init__.py diff --git a/crm/fcrm/doctype/crm_notification/crm_notification.js b/crm/fcrm/pagetype/crm_notification/crm_notification.js similarity index 100% rename from crm/fcrm/doctype/crm_notification/crm_notification.js rename to crm/fcrm/pagetype/crm_notification/crm_notification.js diff --git a/crm/fcrm/doctype/crm_notification/crm_notification.json b/crm/fcrm/pagetype/crm_notification/crm_notification.json similarity index 100% rename from crm/fcrm/doctype/crm_notification/crm_notification.json rename to crm/fcrm/pagetype/crm_notification/crm_notification.json diff --git a/crm/fcrm/doctype/crm_notification/crm_notification.py b/crm/fcrm/pagetype/crm_notification/crm_notification.py similarity index 92% rename from crm/fcrm/doctype/crm_notification/crm_notification.py rename to crm/fcrm/pagetype/crm_notification/crm_notification.py index ce98eaa8..54f73300 100644 --- a/crm/fcrm/doctype/crm_notification/crm_notification.py +++ b/crm/fcrm/pagetype/crm_notification/crm_notification.py @@ -3,10 +3,10 @@ import jingrow from jingrow import _ -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMNotification(Document): +class CRMNotification(Page): def on_update(self): if self.to_user: jingrow.publish_realtime("crm_notification", user= self.to_user) diff --git a/crm/fcrm/doctype/crm_notification/test_crm_notification.py b/crm/fcrm/pagetype/crm_notification/test_crm_notification.py similarity index 100% rename from crm/fcrm/doctype/crm_notification/test_crm_notification.py rename to crm/fcrm/pagetype/crm_notification/test_crm_notification.py diff --git a/crm/fcrm/doctype/crm_organization/__init__.py b/crm/fcrm/pagetype/crm_organization/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_organization/__init__.py rename to crm/fcrm/pagetype/crm_organization/__init__.py diff --git a/crm/fcrm/doctype/crm_organization/crm_organization.js b/crm/fcrm/pagetype/crm_organization/crm_organization.js similarity index 100% rename from crm/fcrm/doctype/crm_organization/crm_organization.js rename to crm/fcrm/pagetype/crm_organization/crm_organization.js diff --git a/crm/fcrm/doctype/crm_organization/crm_organization.json b/crm/fcrm/pagetype/crm_organization/crm_organization.json similarity index 100% rename from crm/fcrm/doctype/crm_organization/crm_organization.json rename to crm/fcrm/pagetype/crm_organization/crm_organization.json diff --git a/crm/fcrm/doctype/crm_organization/crm_organization.py b/crm/fcrm/pagetype/crm_organization/crm_organization.py similarity index 94% rename from crm/fcrm/doctype/crm_organization/crm_organization.py rename to crm/fcrm/pagetype/crm_organization/crm_organization.py index d9f40fc1..8a12402a 100644 --- a/crm/fcrm/doctype/crm_organization/crm_organization.py +++ b/crm/fcrm/pagetype/crm_organization/crm_organization.py @@ -2,12 +2,12 @@ # For license information, please see license.txt import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page from crm.fcrm.pagetype.fcrm_settings.fcrm_settings import get_exchange_rate -class CRMOrganization(Document): +class CRMOrganization(Page): def validate(self): self.update_exchange_rate() diff --git a/crm/fcrm/doctype/crm_organization/test_crm_organization.py b/crm/fcrm/pagetype/crm_organization/test_crm_organization.py similarity index 100% rename from crm/fcrm/doctype/crm_organization/test_crm_organization.py rename to crm/fcrm/pagetype/crm_organization/test_crm_organization.py diff --git a/crm/fcrm/doctype/crm_product/__init__.py b/crm/fcrm/pagetype/crm_product/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_product/__init__.py rename to crm/fcrm/pagetype/crm_product/__init__.py diff --git a/crm/fcrm/doctype/crm_product/crm_product.js b/crm/fcrm/pagetype/crm_product/crm_product.js similarity index 100% rename from crm/fcrm/doctype/crm_product/crm_product.js rename to crm/fcrm/pagetype/crm_product/crm_product.js diff --git a/crm/fcrm/doctype/crm_product/crm_product.json b/crm/fcrm/pagetype/crm_product/crm_product.json similarity index 100% rename from crm/fcrm/doctype/crm_product/crm_product.json rename to crm/fcrm/pagetype/crm_product/crm_product.json diff --git a/crm/fcrm/doctype/crm_product/crm_product.py b/crm/fcrm/pagetype/crm_product/crm_product.py similarity index 81% rename from crm/fcrm/doctype/crm_product/crm_product.py rename to crm/fcrm/pagetype/crm_product/crm_product.py index 88a14caa..4b7d8644 100644 --- a/crm/fcrm/doctype/crm_product/crm_product.py +++ b/crm/fcrm/pagetype/crm_product/crm_product.py @@ -2,10 +2,10 @@ # For license information, please see license.txt import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMProduct(Document): +class CRMProduct(Page): def validate(self): self.set_product_name() diff --git a/crm/fcrm/doctype/crm_product/test_crm_product.py b/crm/fcrm/pagetype/crm_product/test_crm_product.py similarity index 100% rename from crm/fcrm/doctype/crm_product/test_crm_product.py rename to crm/fcrm/pagetype/crm_product/test_crm_product.py diff --git a/crm/fcrm/doctype/crm_products/__init__.py b/crm/fcrm/pagetype/crm_products/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_products/__init__.py rename to crm/fcrm/pagetype/crm_products/__init__.py diff --git a/crm/fcrm/doctype/crm_products/crm_products.json b/crm/fcrm/pagetype/crm_products/crm_products.json similarity index 100% rename from crm/fcrm/doctype/crm_products/crm_products.json rename to crm/fcrm/pagetype/crm_products/crm_products.json diff --git a/crm/fcrm/doctype/crm_products/crm_products.py b/crm/fcrm/pagetype/crm_products/crm_products.py similarity index 97% rename from crm/fcrm/doctype/crm_products/crm_products.py rename to crm/fcrm/pagetype/crm_products/crm_products.py index 535fdd07..b22db21e 100644 --- a/crm/fcrm/doctype/crm_products/crm_products.py +++ b/crm/fcrm/pagetype/crm_products/crm_products.py @@ -2,10 +2,10 @@ # For license information, please see license.txt import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMProducts(Document): +class CRMProducts(Page): pass diff --git a/crm/fcrm/doctype/crm_service_day/__init__.py b/crm/fcrm/pagetype/crm_service_day/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_service_day/__init__.py rename to crm/fcrm/pagetype/crm_service_day/__init__.py diff --git a/crm/fcrm/doctype/crm_service_day/crm_service_day.json b/crm/fcrm/pagetype/crm_service_day/crm_service_day.json similarity index 100% rename from crm/fcrm/doctype/crm_service_day/crm_service_day.json rename to crm/fcrm/pagetype/crm_service_day/crm_service_day.json diff --git a/crm/fcrm/doctype/crm_service_day/crm_service_day.py b/crm/fcrm/pagetype/crm_service_day/crm_service_day.py similarity index 62% rename from crm/fcrm/doctype/crm_service_day/crm_service_day.py rename to crm/fcrm/pagetype/crm_service_day/crm_service_day.py index b313a978..123b15fb 100644 --- a/crm/fcrm/doctype/crm_service_day/crm_service_day.py +++ b/crm/fcrm/pagetype/crm_service_day/crm_service_day.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMServiceDay(Document): +class CRMServiceDay(Page): pass diff --git a/crm/fcrm/doctype/crm_service_level_agreement/__init__.py b/crm/fcrm/pagetype/crm_service_level_agreement/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_service_level_agreement/__init__.py rename to crm/fcrm/pagetype/crm_service_level_agreement/__init__.py diff --git a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/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/crm/fcrm/pagetype/crm_service_level_agreement/crm_service_level_agreement.json similarity index 100% rename from crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json rename to crm/fcrm/pagetype/crm_service_level_agreement/crm_service_level_agreement.json diff --git a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_service_level_agreement/crm_service_level_agreement.py index 63c2bf3e..65352d0a 100644 --- a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py +++ b/crm/fcrm/pagetype/crm_service_level_agreement/crm_service_level_agreement.py @@ -4,7 +4,7 @@ import jingrow from jingrow import _ from datetime import timedelta -from jingrow.model.document import Document +from jingrow.model.page import Page from jingrow.utils import ( add_to_date, get_datetime, @@ -16,7 +16,7 @@ from jingrow.utils import ( from crm.fcrm.pagetype.crm_service_level_agreement.utils import get_context -class CRMServiceLevelAgreement(Document): +class CRMServiceLevelAgreement(Page): def validate(self): self.validate_default() self.validate_condition() diff --git a/crm/fcrm/doctype/crm_service_level_agreement/test_crm_service_level_agreement.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_service_level_agreement/test_crm_service_level_agreement.py diff --git a/crm/fcrm/doctype/crm_service_level_agreement/utils.py b/crm/fcrm/pagetype/crm_service_level_agreement/utils.py similarity index 97% rename from crm/fcrm/doctype/crm_service_level_agreement/utils.py rename to crm/fcrm/pagetype/crm_service_level_agreement/utils.py index 433573e4..e7638f54 100644 --- a/crm/fcrm/doctype/crm_service_level_agreement/utils.py +++ b/crm/fcrm/pagetype/crm_service_level_agreement/utils.py @@ -1,5 +1,5 @@ import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page from jingrow.query_builder import JoinType from jingrow.utils.safe_exec import get_safe_globals from jingrow.utils import now_datetime diff --git a/crm/fcrm/doctype/crm_service_level_priority/__init__.py b/crm/fcrm/pagetype/crm_service_level_priority/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_service_level_priority/__init__.py rename to crm/fcrm/pagetype/crm_service_level_priority/__init__.py diff --git a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.js b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/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/crm/fcrm/pagetype/crm_service_level_priority/crm_service_level_priority.json similarity index 100% rename from crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.json rename to crm/fcrm/pagetype/crm_service_level_priority/crm_service_level_priority.json diff --git a/crm/fcrm/pagetype/crm_service_level_priority/crm_service_level_priority.py b/crm/fcrm/pagetype/crm_service_level_priority/crm_service_level_priority.py new file mode 100644 index 00000000..192d5b97 --- /dev/null +++ b/crm/fcrm/pagetype/crm_service_level_priority/crm_service_level_priority.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, JINGROW and contributors +# For license information, please see license.txt + +# import jingrow +from jingrow.model.page import Page + + +class CRMServiceLevelPriority(Page): + pass diff --git a/crm/fcrm/doctype/crm_service_level_priority/test_crm_service_level_priority.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_service_level_priority/test_crm_service_level_priority.py diff --git a/crm/fcrm/doctype/crm_status_change_log/__init__.py b/crm/fcrm/pagetype/crm_status_change_log/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_status_change_log/__init__.py rename to crm/fcrm/pagetype/crm_status_change_log/__init__.py diff --git a/crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.json b/crm/fcrm/pagetype/crm_status_change_log/crm_status_change_log.json similarity index 100% rename from crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.json rename to crm/fcrm/pagetype/crm_status_change_log/crm_status_change_log.json diff --git a/crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.py b/crm/fcrm/pagetype/crm_status_change_log/crm_status_change_log.py similarity index 95% rename from crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.py rename to crm/fcrm/pagetype/crm_status_change_log/crm_status_change_log.py index d4118973..e73c225a 100644 --- a/crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.py +++ b/crm/fcrm/pagetype/crm_status_change_log/crm_status_change_log.py @@ -4,11 +4,11 @@ from datetime import datetime import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page from jingrow.utils import add_to_date, get_datetime -class CRMStatusChangeLog(Document): +class CRMStatusChangeLog(Page): pass diff --git a/crm/fcrm/doctype/crm_task/__init__.py b/crm/fcrm/pagetype/crm_task/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_task/__init__.py rename to crm/fcrm/pagetype/crm_task/__init__.py diff --git a/crm/fcrm/doctype/crm_task/crm_task.js b/crm/fcrm/pagetype/crm_task/crm_task.js similarity index 100% rename from crm/fcrm/doctype/crm_task/crm_task.js rename to crm/fcrm/pagetype/crm_task/crm_task.js diff --git a/crm/fcrm/doctype/crm_task/crm_task.json b/crm/fcrm/pagetype/crm_task/crm_task.json similarity index 100% rename from crm/fcrm/doctype/crm_task/crm_task.json rename to crm/fcrm/pagetype/crm_task/crm_task.json diff --git a/crm/fcrm/doctype/crm_task/crm_task.py b/crm/fcrm/pagetype/crm_task/crm_task.py similarity index 96% rename from crm/fcrm/doctype/crm_task/crm_task.py rename to crm/fcrm/pagetype/crm_task/crm_task.py index dbf1b7cf..37054e45 100644 --- a/crm/fcrm/doctype/crm_task/crm_task.py +++ b/crm/fcrm/pagetype/crm_task/crm_task.py @@ -3,12 +3,12 @@ import jingrow from jingrow import _ -from jingrow.model.document import Document +from jingrow.model.page import Page from jingrow.desk.form.assign_to import add as assign, remove as unassign from crm.fcrm.pagetype.crm_notification.crm_notification import notify_user -class CRMTask(Document): +class CRMTask(Page): def after_insert(self): self.assign_to() diff --git a/crm/fcrm/doctype/crm_task/test_crm_task.py b/crm/fcrm/pagetype/crm_task/test_crm_task.py similarity index 100% rename from crm/fcrm/doctype/crm_task/test_crm_task.py rename to crm/fcrm/pagetype/crm_task/test_crm_task.py diff --git a/crm/fcrm/doctype/crm_telephony_agent/__init__.py b/crm/fcrm/pagetype/crm_telephony_agent/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_telephony_agent/__init__.py rename to crm/fcrm/pagetype/crm_telephony_agent/__init__.py diff --git a/crm/fcrm/doctype/crm_telephony_agent/crm_telephony_agent.js b/crm/fcrm/pagetype/crm_telephony_agent/crm_telephony_agent.js similarity index 100% rename from crm/fcrm/doctype/crm_telephony_agent/crm_telephony_agent.js rename to crm/fcrm/pagetype/crm_telephony_agent/crm_telephony_agent.js diff --git a/crm/fcrm/doctype/crm_telephony_agent/crm_telephony_agent.json b/crm/fcrm/pagetype/crm_telephony_agent/crm_telephony_agent.json similarity index 100% rename from crm/fcrm/doctype/crm_telephony_agent/crm_telephony_agent.json rename to crm/fcrm/pagetype/crm_telephony_agent/crm_telephony_agent.json diff --git a/crm/fcrm/doctype/crm_telephony_agent/crm_telephony_agent.py b/crm/fcrm/pagetype/crm_telephony_agent/crm_telephony_agent.py similarity index 90% rename from crm/fcrm/doctype/crm_telephony_agent/crm_telephony_agent.py rename to crm/fcrm/pagetype/crm_telephony_agent/crm_telephony_agent.py index a675a5d8..91193076 100644 --- a/crm/fcrm/doctype/crm_telephony_agent/crm_telephony_agent.py +++ b/crm/fcrm/pagetype/crm_telephony_agent/crm_telephony_agent.py @@ -3,10 +3,10 @@ import jingrow from jingrow import _ -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMTelephonyAgent(Document): +class CRMTelephonyAgent(Page): def validate(self): self.set_primary() diff --git a/crm/fcrm/doctype/crm_telephony_agent/test_crm_telephony_agent.py b/crm/fcrm/pagetype/crm_telephony_agent/test_crm_telephony_agent.py similarity index 100% rename from crm/fcrm/doctype/crm_telephony_agent/test_crm_telephony_agent.py rename to crm/fcrm/pagetype/crm_telephony_agent/test_crm_telephony_agent.py diff --git a/crm/fcrm/doctype/crm_telephony_phone/__init__.py b/crm/fcrm/pagetype/crm_telephony_phone/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_telephony_phone/__init__.py rename to crm/fcrm/pagetype/crm_telephony_phone/__init__.py diff --git a/crm/fcrm/doctype/crm_telephony_phone/crm_telephony_phone.json b/crm/fcrm/pagetype/crm_telephony_phone/crm_telephony_phone.json similarity index 100% rename from crm/fcrm/doctype/crm_telephony_phone/crm_telephony_phone.json rename to crm/fcrm/pagetype/crm_telephony_phone/crm_telephony_phone.json diff --git a/crm/fcrm/doctype/crm_telephony_phone/crm_telephony_phone.py b/crm/fcrm/pagetype/crm_telephony_phone/crm_telephony_phone.py similarity index 60% rename from crm/fcrm/doctype/crm_telephony_phone/crm_telephony_phone.py rename to crm/fcrm/pagetype/crm_telephony_phone/crm_telephony_phone.py index c43987cb..68421397 100644 --- a/crm/fcrm/doctype/crm_telephony_phone/crm_telephony_phone.py +++ b/crm/fcrm/pagetype/crm_telephony_phone/crm_telephony_phone.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMTelephonyPhone(Document): +class CRMTelephonyPhone(Page): pass diff --git a/crm/fcrm/doctype/crm_territory/__init__.py b/crm/fcrm/pagetype/crm_territory/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_territory/__init__.py rename to crm/fcrm/pagetype/crm_territory/__init__.py diff --git a/crm/fcrm/doctype/crm_territory/crm_territory.js b/crm/fcrm/pagetype/crm_territory/crm_territory.js similarity index 100% rename from crm/fcrm/doctype/crm_territory/crm_territory.js rename to crm/fcrm/pagetype/crm_territory/crm_territory.js diff --git a/crm/fcrm/doctype/crm_territory/crm_territory.json b/crm/fcrm/pagetype/crm_territory/crm_territory.json similarity index 100% rename from crm/fcrm/doctype/crm_territory/crm_territory.json rename to crm/fcrm/pagetype/crm_territory/crm_territory.json diff --git a/crm/fcrm/doctype/crm_territory/crm_territory.py b/crm/fcrm/pagetype/crm_territory/crm_territory.py similarity index 62% rename from crm/fcrm/doctype/crm_territory/crm_territory.py rename to crm/fcrm/pagetype/crm_territory/crm_territory.py index c52ae5ba..c9d03669 100644 --- a/crm/fcrm/doctype/crm_territory/crm_territory.py +++ b/crm/fcrm/pagetype/crm_territory/crm_territory.py @@ -2,8 +2,8 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class CRMTerritory(Document): +class CRMTerritory(Page): pass diff --git a/crm/fcrm/doctype/crm_territory/test_crm_territory.py b/crm/fcrm/pagetype/crm_territory/test_crm_territory.py similarity index 100% rename from crm/fcrm/doctype/crm_territory/test_crm_territory.py rename to crm/fcrm/pagetype/crm_territory/test_crm_territory.py diff --git a/crm/fcrm/doctype/crm_twilio_settings/__init__.py b/crm/fcrm/pagetype/crm_twilio_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_twilio_settings/__init__.py rename to crm/fcrm/pagetype/crm_twilio_settings/__init__.py diff --git a/crm/fcrm/doctype/crm_twilio_settings/crm_twilio_settings.js b/crm/fcrm/pagetype/crm_twilio_settings/crm_twilio_settings.js similarity index 100% rename from crm/fcrm/doctype/crm_twilio_settings/crm_twilio_settings.js rename to crm/fcrm/pagetype/crm_twilio_settings/crm_twilio_settings.js diff --git a/crm/fcrm/doctype/crm_twilio_settings/crm_twilio_settings.json b/crm/fcrm/pagetype/crm_twilio_settings/crm_twilio_settings.json similarity index 100% rename from crm/fcrm/doctype/crm_twilio_settings/crm_twilio_settings.json rename to crm/fcrm/pagetype/crm_twilio_settings/crm_twilio_settings.json diff --git a/crm/fcrm/doctype/crm_twilio_settings/crm_twilio_settings.py b/crm/fcrm/pagetype/crm_twilio_settings/crm_twilio_settings.py similarity index 97% rename from crm/fcrm/doctype/crm_twilio_settings/crm_twilio_settings.py rename to crm/fcrm/pagetype/crm_twilio_settings/crm_twilio_settings.py index 5deee3cf..2d7d53b7 100644 --- a/crm/fcrm/doctype/crm_twilio_settings/crm_twilio_settings.py +++ b/crm/fcrm/pagetype/crm_twilio_settings/crm_twilio_settings.py @@ -3,11 +3,11 @@ import jingrow from jingrow import _ -from jingrow.model.document import Document +from jingrow.model.page import Page from twilio.rest import Client -class CRMTwilioSettings(Document): +class CRMTwilioSettings(Page): friendly_resource_name = "Jingrow CRM" # System creates TwiML app & API keys with this name. def validate(self): diff --git a/crm/fcrm/doctype/crm_twilio_settings/test_crm_twilio_settings.py b/crm/fcrm/pagetype/crm_twilio_settings/test_crm_twilio_settings.py similarity index 100% rename from crm/fcrm/doctype/crm_twilio_settings/test_crm_twilio_settings.py rename to crm/fcrm/pagetype/crm_twilio_settings/test_crm_twilio_settings.py diff --git a/crm/fcrm/doctype/crm_view_settings/__init__.py b/crm/fcrm/pagetype/crm_view_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/crm_view_settings/__init__.py rename to crm/fcrm/pagetype/crm_view_settings/__init__.py diff --git a/crm/fcrm/doctype/crm_view_settings/crm_view_settings.js b/crm/fcrm/pagetype/crm_view_settings/crm_view_settings.js similarity index 100% rename from crm/fcrm/doctype/crm_view_settings/crm_view_settings.js rename to crm/fcrm/pagetype/crm_view_settings/crm_view_settings.js diff --git a/crm/fcrm/doctype/crm_view_settings/crm_view_settings.json b/crm/fcrm/pagetype/crm_view_settings/crm_view_settings.json similarity index 100% rename from crm/fcrm/doctype/crm_view_settings/crm_view_settings.json rename to crm/fcrm/pagetype/crm_view_settings/crm_view_settings.json diff --git a/crm/fcrm/doctype/crm_view_settings/crm_view_settings.py b/crm/fcrm/pagetype/crm_view_settings/crm_view_settings.py similarity index 98% rename from crm/fcrm/doctype/crm_view_settings/crm_view_settings.py rename to crm/fcrm/pagetype/crm_view_settings/crm_view_settings.py index f66bc344..fa25755a 100644 --- a/crm/fcrm/doctype/crm_view_settings/crm_view_settings.py +++ b/crm/fcrm/pagetype/crm_view_settings/crm_view_settings.py @@ -3,11 +3,11 @@ import json import jingrow -from jingrow.model.document import Document, get_controller +from jingrow.model.page import Page, get_controller from jingrow.utils import parse_json -class CRMViewSettings(Document): +class CRMViewSettings(Page): pass diff --git a/crm/fcrm/doctype/crm_view_settings/test_crm_view_settings.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/crm_view_settings/test_crm_view_settings.py diff --git a/crm/fcrm/doctype/erpnext_crm_settings/__init__.py b/crm/fcrm/pagetype/erpnext_crm_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/erpnext_crm_settings/__init__.py rename to crm/fcrm/pagetype/erpnext_crm_settings/__init__.py diff --git a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.js b/crm/fcrm/pagetype/erpnext_crm_settings/erpnext_crm_settings.js similarity index 100% rename from crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.js rename to crm/fcrm/pagetype/erpnext_crm_settings/erpnext_crm_settings.js diff --git a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.json b/crm/fcrm/pagetype/erpnext_crm_settings/erpnext_crm_settings.json similarity index 100% rename from crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.json rename to crm/fcrm/pagetype/erpnext_crm_settings/erpnext_crm_settings.json diff --git a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py b/crm/fcrm/pagetype/erpnext_crm_settings/erpnext_crm_settings.py similarity index 99% rename from crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py rename to crm/fcrm/pagetype/erpnext_crm_settings/erpnext_crm_settings.py index ab9694a5..13ba35b7 100644 --- a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py +++ b/crm/fcrm/pagetype/erpnext_crm_settings/erpnext_crm_settings.py @@ -7,11 +7,11 @@ import jingrow from jingrow import _ from jingrow.custom.pagetype.property_setter.property_setter import make_property_setter from jingrow.frappeclient import FrappeClient -from jingrow.model.document import Document +from jingrow.model.page import Page from jingrow.utils import get_url_to_form, get_url_to_list -class ERPNextCRMSettings(Document): +class ERPNextCRMSettings(Page): def validate(self): if self.enabled: self.validate_if_erpnext_installed() diff --git a/crm/fcrm/doctype/erpnext_crm_settings/test_erpnext_crm_settings.py b/crm/fcrm/pagetype/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 crm/fcrm/pagetype/erpnext_crm_settings/test_erpnext_crm_settings.py diff --git a/crm/fcrm/doctype/fcrm_note/__init__.py b/crm/fcrm/pagetype/fcrm_note/__init__.py similarity index 100% rename from crm/fcrm/doctype/fcrm_note/__init__.py rename to crm/fcrm/pagetype/fcrm_note/__init__.py diff --git a/crm/fcrm/doctype/fcrm_note/fcrm_note.js b/crm/fcrm/pagetype/fcrm_note/fcrm_note.js similarity index 100% rename from crm/fcrm/doctype/fcrm_note/fcrm_note.js rename to crm/fcrm/pagetype/fcrm_note/fcrm_note.js diff --git a/crm/fcrm/doctype/fcrm_note/fcrm_note.json b/crm/fcrm/pagetype/fcrm_note/fcrm_note.json similarity index 100% rename from crm/fcrm/doctype/fcrm_note/fcrm_note.json rename to crm/fcrm/pagetype/fcrm_note/fcrm_note.json diff --git a/crm/fcrm/doctype/fcrm_note/fcrm_note.py b/crm/fcrm/pagetype/fcrm_note/fcrm_note.py similarity index 82% rename from crm/fcrm/doctype/fcrm_note/fcrm_note.py rename to crm/fcrm/pagetype/fcrm_note/fcrm_note.py index fbe33dee..466fb325 100644 --- a/crm/fcrm/doctype/fcrm_note/fcrm_note.py +++ b/crm/fcrm/pagetype/fcrm_note/fcrm_note.py @@ -2,10 +2,10 @@ # For license information, please see license.txt # import jingrow -from jingrow.model.document import Document +from jingrow.model.page import Page -class FCRMNote(Document): +class FCRMNote(Page): @staticmethod def default_list_data(): rows = [ diff --git a/crm/fcrm/doctype/fcrm_note/test_fcrm_note.py b/crm/fcrm/pagetype/fcrm_note/test_fcrm_note.py similarity index 100% rename from crm/fcrm/doctype/fcrm_note/test_fcrm_note.py rename to crm/fcrm/pagetype/fcrm_note/test_fcrm_note.py diff --git a/crm/fcrm/doctype/fcrm_settings/__init__.py b/crm/fcrm/pagetype/fcrm_settings/__init__.py similarity index 100% rename from crm/fcrm/doctype/fcrm_settings/__init__.py rename to crm/fcrm/pagetype/fcrm_settings/__init__.py diff --git a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.js b/crm/fcrm/pagetype/fcrm_settings/fcrm_settings.js similarity index 100% rename from crm/fcrm/doctype/fcrm_settings/fcrm_settings.js rename to crm/fcrm/pagetype/fcrm_settings/fcrm_settings.js diff --git a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json b/crm/fcrm/pagetype/fcrm_settings/fcrm_settings.json similarity index 100% rename from crm/fcrm/doctype/fcrm_settings/fcrm_settings.json rename to crm/fcrm/pagetype/fcrm_settings/fcrm_settings.json diff --git a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.py b/crm/fcrm/pagetype/fcrm_settings/fcrm_settings.py similarity index 98% rename from crm/fcrm/doctype/fcrm_settings/fcrm_settings.py rename to crm/fcrm/pagetype/fcrm_settings/fcrm_settings.py index 2194abb4..94650df1 100644 --- a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.py +++ b/crm/fcrm/pagetype/fcrm_settings/fcrm_settings.py @@ -5,12 +5,12 @@ import jingrow import requests from jingrow import _ from jingrow.custom.pagetype.property_setter.property_setter import delete_property_setter, make_property_setter -from jingrow.model.document import Document +from jingrow.model.page import Page from crm.install import after_install -class FCRMSettings(Document): +class FCRMSettings(Page): @jingrow.whitelist() def restore_defaults(self, force=False): after_install(force) diff --git a/crm/fcrm/doctype/fcrm_settings/test_fcrm_settings.py b/crm/fcrm/pagetype/fcrm_settings/test_fcrm_settings.py similarity index 100% rename from crm/fcrm/doctype/fcrm_settings/test_fcrm_settings.py rename to crm/fcrm/pagetype/fcrm_settings/test_fcrm_settings.py