Skip to content

Commit

Permalink
patch: create if not exist default fields layout of contact & organiz…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
shariquerik committed Oct 31, 2024
1 parent db1e6ed commit 8371262
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions crm/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ def add_default_fields_layout(force=False):
"doctype": "CRM Deal",
"layout": '[{"label":"Contacts","name":"contacts_section","opened":true,"editable":false,"contacts":[]},{"label":"Organization Details","name":"organization_tab","opened":true,"fields":["organization","website","territory","annual_revenue","close_date","probability","next_step","deal_owner"]}]'
},
"Contact-Side Panel": {
"doctype": "Contact",
"layout": '[{"label":"Details","name":"details","opened":true,"fields":["salutation","first_name","last_name","email_id","mobile_no","gender","company_name","designation","address"]}]'
},
"CRM Organization-Side Panel": {
"doctype": "CRM Organization",
"layout": '[{"label":"Details","name":"details","opened":true,"fields":["organization_name","website","territory","industry","no_of_employees","address"]}]'
},
}

for layout in quick_entry_layouts:
Expand Down
2 changes: 1 addition & 1 deletion crm/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ crm.patches.v1_0.move_crm_note_data_to_fcrm_note
[post_model_sync]
# Patches added in this section will be executed after doctypes are migrated
crm.patches.v1_0.create_email_template_custom_fields
crm.patches.v1_0.create_default_fields_layout #13/09/2024
crm.patches.v1_0.create_default_fields_layout #31/10/2024
crm.patches.v1_0.create_default_sidebar_fields_layout
crm.patches.v1_0.update_deal_quick_entry_layout

0 comments on commit 8371262

Please sign in to comment.