Version 6.x.x Source

Table Name: `tabItem Group`

Item Classification

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `gs` | Section Break | General Settings |
2 | `item_group_name` | Data | Item Group Name |
3 | `parent_item_group` | Link | Parent Item Group | Item Group
4 | `is_group` | Select | Has Child Node Only leaf nodes are allowed in transaction |
    Yes
    No
5 | `column_break_5` | Column Break |  |
6 | `default_income_account` | Link | Default Income Account | Account
7 | `default_expense_account` | Link | Default Expense Account | Account
8 | `default_cost_center` | Link | Default Cost Center | Cost Center
9 | `sb9` | Section Break | Website Settings |
10 | `show_in_website` | Check | Show in Website Check this if you want to show in website |
11 | `page_name` | Data | Page Name |
12 | `parent_website_route` | Read Only | Parent Website Route |
13 | `slideshow` | Link | Slideshow Show this slideshow at the top of the page | Website Slideshow
14 | `description` | Text Editor | Description HTML / Banner that will show on the top of product list. |
15 | `website_specifications` | Table | Website Specifications | Item Website Specification
16 | `lft` | Int | lft |
17 | `rgt` | Int | rgt |
18 | `old_parent` | Link | old_parent | Item Group

### Controller

#### erpnext.setup.doctype.item_group.item_group

### Class ItemGroup

Inherits from frappe.utils.nestedset.NestedSet, frappe.website.website_generator.WebsiteGenerator

after_rename (self, olddn, newdn, merge=False)

No docs

autoname (self)

No docs

get_context (self, context)

No docs

on_trash (self)

No docs

on_update (self)

No docs

set_parent_website_route (self)

Overwrite `parent_website_route` from `WebsiteGenerator`. Only set `parent_website_route` if parent is visble.

e.g. If `show_in_website` is set for Products then url should be `/products`

validate_name_with_item (self)

No docs

erpnext.setup.doctype.item_group.item_group.get_child_groups (item_group_name)

No docs

erpnext.setup.doctype.item_group.item_group.get_group_item_count (item_group)

No docs

erpnext.setup.doctype.item_group.item_group.get_item_for_list_in_html (context)

No docs

erpnext.setup.doctype.item_group.item_group.get_parent_item_groups (item_group_name)

No docs

erpnext.setup.doctype.item_group.item_group.get_product_list_for_group (product_group=None, start=0, limit=10)

No docs

erpnext.setup.doctype.item_group.item_group.invalidate_cache_for (doc, item_group=None)

No docs

#### Linked In:

- Delivery Note Item
- Item
- Item Group
- Material Request Item
- Opportunity Item
- Pricing Rule
- Purchase Invoice Item
- Purchase Order Item
- Purchase Receipt Item
- Quotation Item
- Sales Invoice Item
- Sales Order Item
- Serial No
- Stock Settings
- Supplier Quotation Item
- Target Detail
- Website Item Group