Merge pull request #32912 from nabinhait/customer-supplier-tab-break

fix(ux): Tab break in Customer and Supplier form
This commit is contained in:
Deepesh Garg 2022-11-10 18:30:14 +05:30 committed by GitHub
commit 8f65677cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 232 additions and 148 deletions

View File

@ -10,34 +10,37 @@
"document_type": "Setup", "document_type": "Setup",
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"basic_info",
"naming_series", "naming_series",
"supplier_name", "supplier_name",
"country", "country",
"default_bank_account",
"tax_id",
"tax_category",
"tax_withholding_category",
"image",
"column_break0", "column_break0",
"supplier_group", "supplier_group",
"supplier_type", "supplier_type",
"allow_purchase_invoice_creation_without_purchase_order",
"allow_purchase_invoice_creation_without_purchase_receipt",
"is_internal_supplier",
"represents_company",
"disabled",
"is_transporter", "is_transporter",
"warn_rfqs", "image",
"warn_pos", "defaults_section",
"prevent_rfqs",
"prevent_pos",
"allowed_to_transact_section",
"companies",
"section_break_7",
"default_currency", "default_currency",
"default_bank_account",
"column_break_10", "column_break_10",
"default_price_list", "default_price_list",
"payment_terms",
"internal_supplier_section",
"is_internal_supplier",
"represents_company",
"column_break_16",
"companies",
"column_break2",
"supplier_details",
"column_break_30",
"website",
"language",
"dashboard_tab",
"tax_tab",
"tax_id",
"column_break_27",
"tax_category",
"tax_withholding_category",
"contact_and_address_tab",
"address_contacts", "address_contacts",
"address_html", "address_html",
"column_break1", "column_break1",
@ -49,30 +52,25 @@
"column_break_44", "column_break_44",
"supplier_primary_address", "supplier_primary_address",
"primary_address", "primary_address",
"default_payable_accounts", "accounting_tab",
"accounts", "accounts",
"section_credit_limit", "settings_tab",
"payment_terms", "allow_purchase_invoice_creation_without_purchase_order",
"cb_21", "allow_purchase_invoice_creation_without_purchase_receipt",
"column_break_54",
"is_frozen",
"disabled",
"warn_rfqs",
"warn_pos",
"prevent_rfqs",
"prevent_pos",
"block_supplier_section",
"on_hold", "on_hold",
"hold_type", "hold_type",
"release_date", "column_break_59",
"default_tax_withholding_config", "release_date"
"column_break2",
"website",
"supplier_details",
"column_break_30",
"language",
"is_frozen"
], ],
"fields": [ "fields": [
{
"fieldname": "basic_info",
"fieldtype": "Section Break",
"label": "Name and Type",
"oldfieldtype": "Section Break",
"options": "fa fa-user"
},
{ {
"fieldname": "naming_series", "fieldname": "naming_series",
"fieldtype": "Select", "fieldtype": "Select",
@ -192,6 +190,7 @@
"default": "0", "default": "0",
"fieldname": "warn_rfqs", "fieldname": "warn_rfqs",
"fieldtype": "Check", "fieldtype": "Check",
"hidden": 1,
"label": "Warn RFQs", "label": "Warn RFQs",
"read_only": 1 "read_only": 1
}, },
@ -199,6 +198,7 @@
"default": "0", "default": "0",
"fieldname": "warn_pos", "fieldname": "warn_pos",
"fieldtype": "Check", "fieldtype": "Check",
"hidden": 1,
"label": "Warn POs", "label": "Warn POs",
"read_only": 1 "read_only": 1
}, },
@ -206,6 +206,7 @@
"default": "0", "default": "0",
"fieldname": "prevent_rfqs", "fieldname": "prevent_rfqs",
"fieldtype": "Check", "fieldtype": "Check",
"hidden": 1,
"label": "Prevent RFQs", "label": "Prevent RFQs",
"read_only": 1 "read_only": 1
}, },
@ -213,15 +214,10 @@
"default": "0", "default": "0",
"fieldname": "prevent_pos", "fieldname": "prevent_pos",
"fieldtype": "Check", "fieldtype": "Check",
"hidden": 1,
"label": "Prevent POs", "label": "Prevent POs",
"read_only": 1 "read_only": 1
}, },
{
"depends_on": "represents_company",
"fieldname": "allowed_to_transact_section",
"fieldtype": "Section Break",
"label": "Allowed To Transact With"
},
{ {
"depends_on": "represents_company", "depends_on": "represents_company",
"fieldname": "companies", "fieldname": "companies",
@ -229,12 +225,6 @@
"label": "Allowed To Transact With", "label": "Allowed To Transact With",
"options": "Allowed To Transact With" "options": "Allowed To Transact With"
}, },
{
"collapsible": 1,
"fieldname": "section_break_7",
"fieldtype": "Section Break",
"label": "Currency and Price List"
},
{ {
"fieldname": "default_currency", "fieldname": "default_currency",
"fieldtype": "Link", "fieldtype": "Link",
@ -254,22 +244,12 @@
"label": "Price List", "label": "Price List",
"options": "Price List" "options": "Price List"
}, },
{
"collapsible": 1,
"fieldname": "section_credit_limit",
"fieldtype": "Section Break",
"label": "Payment Terms"
},
{ {
"fieldname": "payment_terms", "fieldname": "payment_terms",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Default Payment Terms Template", "label": "Default Payment Terms Template",
"options": "Payment Terms Template" "options": "Payment Terms Template"
}, },
{
"fieldname": "cb_21",
"fieldtype": "Column Break"
},
{ {
"default": "0", "default": "0",
"fieldname": "on_hold", "fieldname": "on_hold",
@ -315,13 +295,6 @@
"label": "Contact HTML", "label": "Contact HTML",
"read_only": 1 "read_only": 1
}, },
{
"collapsible": 1,
"collapsible_depends_on": "accounts",
"fieldname": "default_payable_accounts",
"fieldtype": "Section Break",
"label": "Default Payable Accounts"
},
{ {
"description": "Mention if non-standard payable account", "description": "Mention if non-standard payable account",
"fieldname": "accounts", "fieldname": "accounts",
@ -329,12 +302,6 @@
"label": "Accounts", "label": "Accounts",
"options": "Party Account" "options": "Party Account"
}, },
{
"collapsible": 1,
"fieldname": "default_tax_withholding_config",
"fieldtype": "Section Break",
"label": "Default Tax Withholding Config"
},
{ {
"collapsible": 1, "collapsible": 1,
"collapsible_depends_on": "supplier_details", "collapsible_depends_on": "supplier_details",
@ -383,7 +350,7 @@
{ {
"fieldname": "primary_address_and_contact_detail_section", "fieldname": "primary_address_and_contact_detail_section",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Primary Address and Contact Detail" "label": "Primary Address and Contact"
}, },
{ {
"description": "Reselect, if the chosen contact is edited after save", "description": "Reselect, if the chosen contact is edited after save",
@ -420,6 +387,64 @@
"fieldtype": "Link", "fieldtype": "Link",
"label": "Supplier Primary Address", "label": "Supplier Primary Address",
"options": "Address" "options": "Address"
},
{
"fieldname": "dashboard_tab",
"fieldtype": "Tab Break",
"label": "Dashboard",
"show_dashboard": 1
},
{
"fieldname": "settings_tab",
"fieldtype": "Tab Break",
"label": "Settings"
},
{
"fieldname": "contact_and_address_tab",
"fieldtype": "Tab Break",
"label": "Contact & Address"
},
{
"fieldname": "accounting_tab",
"fieldtype": "Tab Break",
"label": "Accounting"
},
{
"fieldname": "defaults_section",
"fieldtype": "Section Break",
"label": "Defaults"
},
{
"fieldname": "tax_tab",
"fieldtype": "Tab Break",
"label": "Tax"
},
{
"collapsible": 1,
"fieldname": "internal_supplier_section",
"fieldtype": "Section Break",
"label": "Internal Supplier"
},
{
"fieldname": "column_break_16",
"fieldtype": "Column Break"
},
{
"fieldname": "column_break_27",
"fieldtype": "Column Break"
},
{
"fieldname": "column_break_54",
"fieldtype": "Column Break"
},
{
"fieldname": "block_supplier_section",
"fieldtype": "Section Break",
"label": "Block Supplier"
},
{
"fieldname": "column_break_59",
"fieldtype": "Column Break"
} }
], ],
"icon": "fa fa-user", "icon": "fa fa-user",
@ -432,7 +457,7 @@
"link_fieldname": "party" "link_fieldname": "party"
} }
], ],
"modified": "2022-04-16 18:02:27.838623", "modified": "2022-11-09 18:02:59.075203",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Buying", "module": "Buying",
"name": "Supplier", "name": "Supplier",

View File

@ -49,7 +49,7 @@ def make_custom_fields(update=True):
dict( dict(
fieldname="exempt_from_sales_tax", fieldname="exempt_from_sales_tax",
fieldtype="Check", fieldtype="Check",
insert_after="represents_company", insert_after="dn_required",
label="Is customer exempted from sales tax?", label="Is customer exempted from sales tax?",
) )
], ],

View File

@ -14,30 +14,35 @@
"naming_series", "naming_series",
"salutation", "salutation",
"customer_name", "customer_name",
"customer_type",
"customer_group",
"column_break0",
"territory",
"gender", "gender",
"default_bank_account",
"tax_id",
"tax_category",
"tax_withholding_category",
"lead_name", "lead_name",
"opportunity_name", "opportunity_name",
"image",
"column_break0",
"customer_group",
"customer_type",
"territory",
"account_manager", "account_manager",
"so_required", "image",
"dn_required", "defaults_tab",
"default_price_list",
"default_bank_account",
"column_break_14",
"default_currency",
"internal_customer_section",
"is_internal_customer", "is_internal_customer",
"represents_company", "represents_company",
"disabled", "column_break_70",
"allowed_to_transact_section",
"companies", "companies",
"currency_and_price_list", "more_info",
"default_currency", "market_segment",
"column_break_14", "industry",
"default_price_list", "customer_pos_id",
"website",
"language",
"column_break_45",
"customer_details",
"dashboard_tab",
"contact_and_address_tab",
"address_contacts", "address_contacts",
"address_html", "address_html",
"column_break1", "column_break1",
@ -49,34 +54,39 @@
"column_break_26", "column_break_26",
"customer_primary_address", "customer_primary_address",
"primary_address", "primary_address",
"default_receivable_accounts", "tax_tab",
"accounts", "taxation_section",
"tax_id",
"column_break_21",
"tax_category",
"tax_withholding_category",
"accounting_tab",
"credit_limit_section", "credit_limit_section",
"payment_terms", "payment_terms",
"credit_limits", "credit_limits",
"more_info", "default_receivable_accounts",
"customer_details", "accounts",
"column_break_45", "loyalty_points_tab",
"market_segment",
"industry",
"website",
"language",
"is_frozen",
"column_break_38",
"loyalty_program", "loyalty_program",
"column_break_54",
"loyalty_program_tier", "loyalty_program_tier",
"sales_team_section_break", "sales_team_tab",
"default_sales_partner",
"default_commission_rate",
"sales_team_section",
"sales_team", "sales_team",
"customer_pos_id" "sales_team_section",
"default_sales_partner",
"column_break_66",
"default_commission_rate",
"settings_tab",
"so_required",
"dn_required",
"column_break_53",
"is_frozen",
"disabled"
], ],
"fields": [ "fields": [
{ {
"fieldname": "basic_info", "fieldname": "basic_info",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Name and Type",
"oldfieldtype": "Section Break", "oldfieldtype": "Section Break",
"options": "fa fa-user" "options": "fa fa-user"
}, },
@ -215,12 +225,6 @@
"options": "Company", "options": "Company",
"unique": 1 "unique": 1
}, },
{
"depends_on": "represents_company",
"fieldname": "allowed_to_transact_section",
"fieldtype": "Section Break",
"label": "Allowed To Transact With"
},
{ {
"depends_on": "represents_company", "depends_on": "represents_company",
"fieldname": "companies", "fieldname": "companies",
@ -228,12 +232,6 @@
"label": "Allowed To Transact With", "label": "Allowed To Transact With",
"options": "Allowed To Transact With" "options": "Allowed To Transact With"
}, },
{
"collapsible": 1,
"fieldname": "currency_and_price_list",
"fieldtype": "Section Break",
"label": "Currency and Price List"
},
{ {
"fieldname": "default_currency", "fieldname": "default_currency",
"fieldtype": "Link", "fieldtype": "Link",
@ -295,7 +293,7 @@
"description": "Select, to make the customer searchable with these fields", "description": "Select, to make the customer searchable with these fields",
"fieldname": "primary_address_and_contact_detail", "fieldname": "primary_address_and_contact_detail",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Primary Address and Contact Detail" "label": "Primary Address and Contact"
}, },
{ {
"description": "Reselect, if the chosen contact is edited after save", "description": "Reselect, if the chosen contact is edited after save",
@ -334,20 +332,18 @@
"read_only": 1 "read_only": 1
}, },
{ {
"collapsible": 1,
"fieldname": "default_receivable_accounts", "fieldname": "default_receivable_accounts",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Default Receivable Accounts" "label": "Default Receivable Accounts"
}, },
{ {
"description": "Mention if non-standard receivable account", "description": "Mention if a non-standard receivable account",
"fieldname": "accounts", "fieldname": "accounts",
"fieldtype": "Table", "fieldtype": "Table",
"label": "Accounts", "label": "Receivable Accounts",
"options": "Party Account" "options": "Party Account"
}, },
{ {
"collapsible": 1,
"fieldname": "credit_limit_section", "fieldname": "credit_limit_section",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Credit Limit and Payment Terms" "label": "Credit Limit and Payment Terms"
@ -397,12 +393,6 @@
"fieldtype": "Check", "fieldtype": "Check",
"label": "Is Frozen" "label": "Is Frozen"
}, },
{
"collapsible": 1,
"fieldname": "column_break_38",
"fieldtype": "Section Break",
"label": "Loyalty Points"
},
{ {
"fieldname": "loyalty_program", "fieldname": "loyalty_program",
"fieldtype": "Link", "fieldtype": "Link",
@ -417,15 +407,6 @@
"no_copy": 1, "no_copy": 1,
"read_only": 1 "read_only": 1
}, },
{
"collapsible": 1,
"collapsible_depends_on": "default_sales_partner",
"fieldname": "sales_team_section_break",
"fieldtype": "Section Break",
"label": "Sales Partner and Commission",
"oldfieldtype": "Section Break",
"options": "fa fa-group"
},
{ {
"fieldname": "default_sales_partner", "fieldname": "default_sales_partner",
"fieldtype": "Link", "fieldtype": "Link",
@ -446,13 +427,12 @@
"collapsible": 1, "collapsible": 1,
"collapsible_depends_on": "sales_team", "collapsible_depends_on": "sales_team",
"fieldname": "sales_team_section", "fieldname": "sales_team_section",
"fieldtype": "Section Break", "fieldtype": "Section Break"
"label": "Sales Team"
}, },
{ {
"fieldname": "sales_team", "fieldname": "sales_team",
"fieldtype": "Table", "fieldtype": "Table",
"label": "Sales Team Details", "label": "Sales Team",
"oldfieldname": "sales_team", "oldfieldname": "sales_team",
"oldfieldtype": "Table", "oldfieldtype": "Table",
"options": "Sales Team" "options": "Sales Team"
@ -498,6 +478,83 @@
"no_copy": 1, "no_copy": 1,
"options": "Opportunity", "options": "Opportunity",
"print_hide": 1 "print_hide": 1
},
{
"fieldname": "contact_and_address_tab",
"fieldtype": "Tab Break",
"label": "Contact & Address"
},
{
"fieldname": "defaults_tab",
"fieldtype": "Section Break",
"label": "Defaults"
},
{
"fieldname": "settings_tab",
"fieldtype": "Tab Break",
"label": "Settings"
},
{
"collapsible": 1,
"collapsible_depends_on": "default_sales_partner",
"fieldname": "sales_team_tab",
"fieldtype": "Tab Break",
"label": "Sales Team",
"oldfieldtype": "Section Break",
"options": "fa fa-group"
},
{
"fieldname": "column_break_66",
"fieldtype": "Column Break"
},
{
"fieldname": "column_break_21",
"fieldtype": "Column Break"
},
{
"fieldname": "dashboard_tab",
"fieldtype": "Tab Break",
"label": "Dashboard",
"show_dashboard": 1
},
{
"fieldname": "column_break_53",
"fieldtype": "Column Break"
},
{
"collapsible": 1,
"fieldname": "loyalty_points_tab",
"fieldtype": "Section Break",
"label": "Loyalty Points"
},
{
"fieldname": "taxation_section",
"fieldtype": "Section Break"
},
{
"fieldname": "accounting_tab",
"fieldtype": "Tab Break",
"label": "Accounting"
},
{
"fieldname": "tax_tab",
"fieldtype": "Tab Break",
"label": "Tax"
},
{
"collapsible": 1,
"collapsible_depends_on": "is_internal_customer",
"fieldname": "internal_customer_section",
"fieldtype": "Section Break",
"label": "Internal Customer"
},
{
"fieldname": "column_break_70",
"fieldtype": "Column Break"
},
{
"fieldname": "column_break_54",
"fieldtype": "Column Break"
} }
], ],
"icon": "fa fa-user", "icon": "fa fa-user",
@ -511,7 +568,7 @@
"link_fieldname": "party" "link_fieldname": "party"
} }
], ],
"modified": "2022-04-16 20:32:34.000304", "modified": "2022-11-08 15:52:34.462657",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Selling", "module": "Selling",
"name": "Customer", "name": "Customer",

View File

@ -12,7 +12,7 @@
], ],
"fields": [ "fields": [
{ {
"columns": 4, "columns": 3,
"fieldname": "credit_limit", "fieldname": "credit_limit",
"fieldtype": "Currency", "fieldtype": "Currency",
"in_list_view": 1, "in_list_view": 1,
@ -31,6 +31,7 @@
"options": "Company" "options": "Company"
}, },
{ {
"columns": 3,
"default": "0", "default": "0",
"fieldname": "bypass_credit_limit_check", "fieldname": "bypass_credit_limit_check",
"fieldtype": "Check", "fieldtype": "Check",
@ -40,7 +41,7 @@
], ],
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2019-12-31 15:43:05.822328", "modified": "2022-11-08 15:19:13.927194",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Selling", "module": "Selling",
"name": "Customer Credit Limit", "name": "Customer Credit Limit",
@ -48,5 +49,6 @@
"permissions": [], "permissions": [],
"quick_entry": 1, "quick_entry": 1,
"sort_field": "modified", "sort_field": "modified",
"sort_order": "DESC" "sort_order": "DESC",
"states": []
} }