Version 6.7.7 Source

### Class InvalidItemAttributeValueError

Inherits from frappe.exceptions.ValidationError

### Class ItemTemplateCannotHaveStock

Inherits from frappe.exceptions.ValidationError

### Class ItemVariantExistsError

Inherits from frappe.exceptions.ValidationError

erpnext.controllers.item_variant.copy_attributes_to_variant (item, variant)

No docs

Public API
`/api/method/erpnext.controllers.item_variant.create_variant`

erpnext.controllers.item_variant.create_variant (item, args)

No docs

erpnext.controllers.item_variant.find_variant (item, args)

No docs

Public API
`/api/method/erpnext.controllers.item_variant.get_variant`

erpnext.controllers.item_variant.get_variant (item, args)

Validates Attributes and their Values, then looks for an exactly matching Item Variant

Parameters:

- `item` - Template Item
- `args` - A dictionary with "Attribute" as key and "Attribute Value" as value

erpnext.controllers.item_variant.make_variant_item_code (template, variant)

Uses template's item code and abbreviations to make variant's item code

erpnext.controllers.item_variant.validate_item_variant_attributes (item, args)

No docs