document重命名为page
This commit is contained in:
parent
17d0584f12
commit
f0ad4d5172
@ -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
|
|
||||||
@ -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
|
|
||||||
@ -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
|
|
||||||
@ -2,13 +2,13 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
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.integrations.api import get_contact_by_phone_number
|
||||||
from crm.utils import seconds_to_duration
|
from crm.utils import seconds_to_duration
|
||||||
|
|
||||||
|
|
||||||
class CRMCallLog(Document):
|
class CRMCallLog(Page):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def default_list_data():
|
def default_list_data():
|
||||||
columns = [
|
columns = [
|
||||||
@ -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
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMContacts(Document):
|
class CRMContacts(Page):
|
||||||
pass
|
pass
|
||||||
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow import _
|
from jingrow import _
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMDashboard(Document):
|
class CRMDashboard(Page):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -4,14 +4,14 @@
|
|||||||
import jingrow
|
import jingrow
|
||||||
from jingrow import _
|
from jingrow import _
|
||||||
from jingrow.desk.form.assign_to import add as assign
|
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_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.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
|
from crm.fcrm.pagetype.fcrm_settings.fcrm_settings import get_exchange_rate
|
||||||
|
|
||||||
|
|
||||||
class CRMDeal(Document):
|
class CRMDeal(Page):
|
||||||
def before_validate(self):
|
def before_validate(self):
|
||||||
self.set_sla()
|
self.set_sla()
|
||||||
|
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMDealStatus(Document):
|
class CRMDealStatus(Page):
|
||||||
pass
|
pass
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMDropdownItem(Document):
|
class CRMDropdownItem(Page):
|
||||||
pass
|
pass
|
||||||
@ -4,10 +4,10 @@
|
|||||||
import jingrow
|
import jingrow
|
||||||
import requests
|
import requests
|
||||||
from jingrow import _
|
from jingrow import _
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMExotelSettings(Document):
|
class CRMExotelSettings(Page):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.verify_credentials()
|
self.verify_credentials()
|
||||||
|
|
||||||
@ -5,11 +5,11 @@ import json
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow import _
|
from jingrow import _
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
from jingrow.utils import random_string
|
from jingrow.utils import random_string
|
||||||
|
|
||||||
|
|
||||||
class CRMFieldsLayout(Document):
|
class CRMFieldsLayout(Page):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow import _
|
from jingrow import _
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMFormScript(Document):
|
class CRMFormScript(Page):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
in_user_env = not (
|
in_user_env = not (
|
||||||
jingrow.flags.in_install
|
jingrow.flags.in_install
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMGlobalSettings(Document):
|
class CRMGlobalSettings(Page):
|
||||||
pass
|
pass
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMHoliday(Document):
|
class CRMHoliday(Page):
|
||||||
pass
|
pass
|
||||||
9
crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.py
Normal file
9
crm/fcrm/pagetype/crm_holiday_list/crm_holiday_list.py
Normal file
@ -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
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMIndustry(Document):
|
class CRMIndustry(Page):
|
||||||
pass
|
pass
|
||||||
@ -2,10 +2,10 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMInvitation(Document):
|
class CRMInvitation(Page):
|
||||||
def before_insert(self):
|
def before_insert(self):
|
||||||
jingrow.utils.validate_email_address(self.email, True)
|
jingrow.utils.validate_email_address(self.email, True)
|
||||||
|
|
||||||
@ -4,7 +4,7 @@
|
|||||||
import jingrow
|
import jingrow
|
||||||
from jingrow import _
|
from jingrow import _
|
||||||
from jingrow.desk.form.assign_to import add as assign
|
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 jingrow.utils import has_gravatar, validate_email_address
|
||||||
|
|
||||||
from crm.fcrm.pagetype.crm_service_level_agreement.utils import get_sla
|
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):
|
def before_validate(self):
|
||||||
self.set_sla()
|
self.set_sla()
|
||||||
|
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMLeadSource(Document):
|
class CRMLeadSource(Page):
|
||||||
pass
|
pass
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMLeadStatus(Document):
|
class CRMLeadStatus(Page):
|
||||||
pass
|
pass
|
||||||
@ -2,8 +2,8 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import jingrow
|
# import jingrow
|
||||||
from jingrow.model.document import Document
|
from jingrow.model.page import Page
|
||||||
|
|
||||||
|
|
||||||
class CRMLostReason(Document):
|
class CRMLostReason(Page):
|
||||||
pass
|
pass
|
||||||
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
import jingrow
|
import jingrow
|
||||||
from jingrow import _
|
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):
|
def on_update(self):
|
||||||
if self.to_user:
|
if self.to_user:
|
||||||
jingrow.publish_realtime("crm_notification", user= self.to_user)
|
jingrow.publish_realtime("crm_notification", user= self.to_user)
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user