fix: circular import
This commit is contained in:
parent
b3acff8cba
commit
029c16d1d0
@ -95,9 +95,7 @@ def create_forecasting_script():
|
|||||||
|
|
||||||
|
|
||||||
def get_forecasting_script():
|
def get_forecasting_script():
|
||||||
return (
|
return """class CRMDeal {
|
||||||
"""
|
|
||||||
class CRMDeal {
|
|
||||||
async status() {
|
async status() {
|
||||||
await this.doc.trigger('updateProbability')
|
await this.doc.trigger('updateProbability')
|
||||||
}
|
}
|
||||||
@ -110,6 +108,4 @@ class CRMDeal {
|
|||||||
|
|
||||||
this.doc.probability = status.probability
|
this.doc.probability = status.probability
|
||||||
}
|
}
|
||||||
}
|
}"""
|
||||||
"""
|
|
||||||
)
|
|
||||||
|
|||||||
@ -5,7 +5,6 @@ import frappe
|
|||||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||||
|
|
||||||
from crm.fcrm.doctype.crm_products.crm_products import create_product_details_script
|
from crm.fcrm.doctype.crm_products.crm_products import create_product_details_script
|
||||||
from crm.fcrm.doctype.fcrm_settings.fcrm_settings import create_forecasting_script
|
|
||||||
|
|
||||||
|
|
||||||
def before_install():
|
def before_install():
|
||||||
@ -360,6 +359,8 @@ def add_standard_dropdown_items():
|
|||||||
|
|
||||||
|
|
||||||
def add_default_scripts():
|
def add_default_scripts():
|
||||||
|
from crm.fcrm.doctype.fcrm_settings.fcrm_settings import create_forecasting_script
|
||||||
|
|
||||||
for doctype in ["CRM Lead", "CRM Deal"]:
|
for doctype in ["CRM Lead", "CRM Deal"]:
|
||||||
create_product_details_script(doctype)
|
create_product_details_script(doctype)
|
||||||
create_forecasting_script()
|
create_forecasting_script()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user