717 lines
16 KiB
HTML
717 lines
16 KiB
HTML
<!-- title: Item Group -->
|
|
|
|
|
|
|
|
|
|
|
|
<div class="dev-header">
|
|
|
|
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
|
|
Version 6.x.x</a>
|
|
|
|
|
|
<a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/setup/doctype/item_group"
|
|
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<p><b>Table Name:</b> <code>tabItem Group</code></p>
|
|
|
|
|
|
Item Classification
|
|
|
|
<h3>Fields</h3>
|
|
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 5%">Sr</th>
|
|
<th style="width: 25%">Fieldname</th>
|
|
<th style="width: 20%">Type</th>
|
|
<th style="width: 25%">Label</th>
|
|
<th style="width: 25%">Options</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr class="info">
|
|
<td>1</td>
|
|
<td ><code>gs</code></td>
|
|
<td >
|
|
Section Break</td>
|
|
<td >
|
|
General Settings
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>2</td>
|
|
<td class="danger" title="Mandatory"><code>item_group_name</code></td>
|
|
<td >
|
|
Data</td>
|
|
<td >
|
|
Item Group Name
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>3</td>
|
|
<td ><code>parent_item_group</code></td>
|
|
<td >
|
|
Link</td>
|
|
<td >
|
|
Parent Item Group
|
|
|
|
</td>
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/setup/item_group">Item Group</a>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>4</td>
|
|
<td class="danger" title="Mandatory"><code>is_group</code></td>
|
|
<td >
|
|
Select</td>
|
|
<td >
|
|
Has Child Node
|
|
<p class="text-muted small">
|
|
Only leaf nodes are allowed in transaction</p>
|
|
</td>
|
|
<td>
|
|
<pre>
|
|
Yes
|
|
No</pre>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>5</td>
|
|
<td ><code>column_break_5</code></td>
|
|
<td class="info">
|
|
Column Break</td>
|
|
<td >
|
|
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>6</td>
|
|
<td ><code>default_income_account</code></td>
|
|
<td >
|
|
Link</td>
|
|
<td >
|
|
Default Income Account
|
|
|
|
</td>
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/accounts/account">Account</a>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>7</td>
|
|
<td ><code>default_expense_account</code></td>
|
|
<td >
|
|
Link</td>
|
|
<td >
|
|
Default Expense Account
|
|
|
|
</td>
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/accounts/account">Account</a>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>8</td>
|
|
<td ><code>default_cost_center</code></td>
|
|
<td >
|
|
Link</td>
|
|
<td >
|
|
Default Cost Center
|
|
|
|
</td>
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/accounts/cost_center">Cost Center</a>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr class="info">
|
|
<td>9</td>
|
|
<td ><code>sb9</code></td>
|
|
<td >
|
|
Section Break</td>
|
|
<td >
|
|
Website Settings
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>10</td>
|
|
<td ><code>show_in_website</code></td>
|
|
<td >
|
|
Check</td>
|
|
<td >
|
|
Show in Website
|
|
<p class="text-muted small">
|
|
Check this if you want to show in website</p>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>11</td>
|
|
<td ><code>page_name</code></td>
|
|
<td >
|
|
Data</td>
|
|
<td >
|
|
Page Name
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>12</td>
|
|
<td ><code>parent_website_route</code></td>
|
|
<td >
|
|
Read Only</td>
|
|
<td >
|
|
Parent Website Route
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>13</td>
|
|
<td ><code>slideshow</code></td>
|
|
<td >
|
|
Link</td>
|
|
<td >
|
|
Slideshow
|
|
<p class="text-muted small">
|
|
Show this slideshow at the top of the page</p>
|
|
</td>
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/website/website_slideshow">Website Slideshow</a>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>14</td>
|
|
<td ><code>description</code></td>
|
|
<td >
|
|
Text Editor</td>
|
|
<td >
|
|
Description
|
|
<p class="text-muted small">
|
|
HTML / Banner that will show on the top of product list.</p>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>15</td>
|
|
<td ><code>website_specifications</code></td>
|
|
<td >
|
|
Table</td>
|
|
<td >
|
|
Website Specifications
|
|
|
|
</td>
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/stock/item_website_specification">Item Website Specification</a>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>16</td>
|
|
<td ><code>lft</code></td>
|
|
<td >
|
|
Int</td>
|
|
<td class="text-muted" title="Hidden">
|
|
lft
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>17</td>
|
|
<td ><code>rgt</code></td>
|
|
<td >
|
|
Int</td>
|
|
<td class="text-muted" title="Hidden">
|
|
rgt
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>18</td>
|
|
<td ><code>old_parent</code></td>
|
|
<td >
|
|
Link</td>
|
|
<td class="text-muted" title="Hidden">
|
|
old_parent
|
|
|
|
</td>
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/setup/item_group">Item Group</a>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<hr>
|
|
<h3>Controller</h3>
|
|
<h4>erpnext.setup.doctype.item_group.item_group</h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 style="font-weight: normal;">Class <b>ItemGroup</b></h3>
|
|
|
|
<p style="padding-left: 30px;"><i>Inherits from frappe.utils.nestedset.NestedSet, frappe.website.website_generator.WebsiteGenerator</i></h4>
|
|
|
|
<div class="docs-attr-desc"><p></p>
|
|
</div>
|
|
<div style="padding-left: 30px;">
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="after_rename" href="#after_rename" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
<b>after_rename</b>
|
|
<i class="text-muted">(self, olddn, newdn, merge=False)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="autoname" href="#autoname" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
<b>autoname</b>
|
|
<i class="text-muted">(self)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="get_context" href="#get_context" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
<b>get_context</b>
|
|
<i class="text-muted">(self, context)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="on_trash" href="#on_trash" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
<b>on_trash</b>
|
|
<i class="text-muted">(self)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="on_update" href="#on_update" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
<b>on_update</b>
|
|
<i class="text-muted">(self)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="set_parent_website_route" href="#set_parent_website_route" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
<b>set_parent_website_route</b>
|
|
<i class="text-muted">(self)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p>Overwrite <code>parent_website_route</code> from <code>WebsiteGenerator</code>.
|
|
Only set <code>parent_website_route</code> if parent is visble.</p>
|
|
|
|
<p>e.g. If <code>show_in_website</code> is set for Products then url should be <code>/products</code></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="validate_name_with_item" href="#validate_name_with_item" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
<b>validate_name_with_item</b>
|
|
<i class="text-muted">(self)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
</div>
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="erpnext.setup.doctype.item_group.item_group.get_child_groups" href="#erpnext.setup.doctype.item_group.item_group.get_child_groups" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
erpnext.setup.doctype.item_group.item_group.<b>get_child_groups</b>
|
|
<i class="text-muted">(item_group_name)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="erpnext.setup.doctype.item_group.item_group.get_group_item_count" href="#erpnext.setup.doctype.item_group.item_group.get_group_item_count" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
erpnext.setup.doctype.item_group.item_group.<b>get_group_item_count</b>
|
|
<i class="text-muted">(item_group)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="erpnext.setup.doctype.item_group.item_group.get_item_for_list_in_html" href="#erpnext.setup.doctype.item_group.item_group.get_item_for_list_in_html" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
erpnext.setup.doctype.item_group.item_group.<b>get_item_for_list_in_html</b>
|
|
<i class="text-muted">(context)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="erpnext.setup.doctype.item_group.item_group.get_parent_item_groups" href="#erpnext.setup.doctype.item_group.item_group.get_parent_item_groups" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
erpnext.setup.doctype.item_group.item_group.<b>get_parent_item_groups</b>
|
|
<i class="text-muted">(item_group_name)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="erpnext.setup.doctype.item_group.item_group.get_product_list_for_group" href="#erpnext.setup.doctype.item_group.item_group.get_product_list_for_group" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
erpnext.setup.doctype.item_group.item_group.<b>get_product_list_for_group</b>
|
|
<i class="text-muted">(product_group=None, start=0, limit=10)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="erpnext.setup.doctype.item_group.item_group.invalidate_cache_for" href="#erpnext.setup.doctype.item_group.item_group.invalidate_cache_for" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
erpnext.setup.doctype.item_group.item_group.<b>invalidate_cache_for</b>
|
|
<i class="text-muted">(doc, item_group=None)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Linked In:</h4>
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/stock/delivery_note_item">Delivery Note Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/stock/item">Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/setup/item_group">Item Group</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/stock/material_request_item">Material Request Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/crm/opportunity_item">Opportunity Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/accounts/pricing_rule">Pricing Rule</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/accounts/purchase_invoice_item">Purchase Invoice Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/buying/purchase_order_item">Purchase Order Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/stock/purchase_receipt_item">Purchase Receipt Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/selling/quotation_item">Quotation Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/accounts/sales_invoice_item">Sales Invoice Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/selling/sales_order_item">Sales Order Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/stock/serial_no">Serial No</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/stock/stock_settings">Stock Settings</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/buying/supplier_quotation_item">Supplier Quotation Item</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/setup/target_detail">Target Detail</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https://frappe.github.io/erpnext/current/models/setup/website_item_group">Website Item Group</a>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- autodoc -->
|
|
<!-- jinja -->
|
|
<!-- static --> |