mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 05:58:27 +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")):
|
||||
|
||||
Reference in New Issue
Block a user