mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 06:08:25 +00:00
feat(analytics): comply erpnext with utm methodology
This commit is contained in:
@@ -23,6 +23,7 @@ def after_install():
|
||||
|
||||
set_single_defaults()
|
||||
create_print_setting_custom_fields()
|
||||
create_marketgin_campagin_custom_fields()
|
||||
add_all_roles_to("Administrator")
|
||||
create_default_success_action()
|
||||
create_default_energy_point_rules()
|
||||
@@ -123,6 +124,22 @@ def create_print_setting_custom_fields():
|
||||
)
|
||||
|
||||
|
||||
def create_marketgin_campagin_custom_fields():
|
||||
create_custom_fields(
|
||||
{
|
||||
"UTM Campaign": [
|
||||
{
|
||||
"label": _("Messaging CRM Campagin"),
|
||||
"fieldname": "crm_campaign",
|
||||
"fieldtype": "Link",
|
||||
"options": "Campaign",
|
||||
"insert_after": "campaign_decription",
|
||||
},
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def create_default_success_action():
|
||||
for success_action in get_default_success_action():
|
||||
if not frappe.db.exists("Success Action", success_action.get("ref_doctype")):
|
||||
|
||||
@@ -302,7 +302,7 @@ def install(country=None):
|
||||
("Designation", "designation_name", "designation.txt"),
|
||||
("Sales Stage", "stage_name", "sales_stage.txt"),
|
||||
("Industry Type", "industry", "industry_type.txt"),
|
||||
("Lead Source", "source_name", "lead_source.txt"),
|
||||
("UTM Source", "name", "marketing_source.txt"),
|
||||
("Sales Partner Type", "sales_partner_type", "sales_partner_type.txt"),
|
||||
):
|
||||
records += [{"doctype": doctype, title_field: title} for title in read_lines(filename)]
|
||||
|
||||
Reference in New Issue
Block a user