Skip to main content
Odoo Community Association

Product Variant Configurator

Production/Stable License: AGPL-3 OCA/product-variant Translate me on Weblate Try me on Runboat

Provides an abstract model for product variant configuration. It provides the basic functionality for presenting a table with the attributes of a template and the possibility to select one of the valid values. You can try this functionality creating a product variant directly selecting a product template that has attributes.

This module also prevents in a configurable way the creation of the product variants when defining the attributes and attribute values of the product template.

Table of contents

Configuration

(after installing sale_management application)

To configure the creation of the variants behaviour, you need to:

  1. Go to Sales > Configuration > Settings, and select “Attributes and Variants (Set product attributes (e.g. color, size) to sell variants)” on “Product Catalog” section.

  2. Go to Sales > Catalog > Products, and select a product.

  3. On the Variants tab edit the value of the field Variant Creation.

  4. If you want to stop the automatic creation of the variant, and have the same behaviour for all the products in the same category, go to Inventory > Configuration > Product Categories, select the category and check the checkbox Don't create variants automatically.

Usage

(after installing sale_management application)

  1. Go to Sales > Catalog > Product Variants.

  2. Click on “Create” button for creating a new one.

  3. On the field “Product Template”, select a product template that has several attributes.

  4. A table with the attributes of the template will appear below.

  5. Select all the attribute values and click on “Save” button.

  6. A new product variant will be created for that attributes.

  7. An error will raise if there’s another variant with the same attribute values or if you haven’t filled all the required values.

Developers

To use product configurator in your model, you need to:

  1. The product.configurator is an abstract model, hence, to be used it must be inherited in your model:

  2. If the model you’re inheriting has name attribute, and it uses the related parameter you must override it.

class AModel(models.Model):
    _inherit = ['module.model', 'product.configurator']
    name = fields.Char(related="delegated_field.related_field")

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • AvanzOSC

  • Tecnativa

  • ACSONE SA/NV

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/product-variant project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_product_variant_configurator-19.0.1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_product_variant_configurator-19.0.1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e9f364ceecab8ddf2e0111931e07ac4610195add5b8f32e18de478d1e19ef2
MD5 fb8fc3257ccb963a4c5a78b6205bbef8
BLAKE2b-256 54b4167419067f1288290863796d8146b347c60874ff7e820218e3d32e4f4741

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

19.0.1.0.2 This release

1 file

19.0.1.0.1

1 file

19.0.1.0.0.11

1 file

19.0.1.0.0.10

1 file

19.0.1.0.0.8

1 file

19.0.1.0.0.5

1 file

19.0.1.0.0.2

1 file

18.0.1.0.0.11

1 file

18.0.1.0.0.9

1 file

18.0.1.0.0.8

1 file

18.0.1.0.0.7

1 file

18.0.1.0.0.6

1 file

18.0.1.0.0.5

1 file

18.0.1.0.0.4

1 file

18.0.1.0.0.3

1 file

18.0.1.0.0.2

1 file

17.0.1.0.0.9

1 file

17.0.1.0.0.8

1 file

17.0.1.0.0.6

1 file

17.0.1.0.0.5

1 file

17.0.1.0.0.4

1 file

17.0.1.0.0.2

1 file

16.0.1.0.8.4

1 file

16.0.1.0.8.3

1 file

16.0.1.0.8.2

1 file

16.0.1.0.8.1

1 file

16.0.1.0.8

1 file

16.0.1.0.7

1 file

16.0.1.0.5.2

1 file

16.0.1.0.5.1

1 file

16.0.1.0.5

1 file

16.0.1.0.4

1 file

16.0.1.0.3.6

1 file

16.0.1.0.3.5

1 file

16.0.1.0.3.4

1 file

16.0.1.0.3.2

1 file

16.0.1.0.3.1

1 file

16.0.1.0.3

1 file

16.0.1.0.2.7

1 file

16.0.1.0.2.6

1 file

16.0.1.0.2.3

1 file

16.0.1.0.2

1 file

16.0.1.0.1

1 file

16.0.1.0.0.11

1 file

16.0.1.0.0.9

1 file

16.0.1.0.0.8

1 file

16.0.1.0.0.7

1 file

16.0.1.0.0.6

1 file

16.0.1.0.0.4

1 file

15.0.1.0.0.20

1 file

15.0.1.0.0.19

1 file

15.0.1.0.0.18

1 file

15.0.1.0.0.17

1 file

15.0.1.0.0.16

1 file

15.0.1.0.0.15

1 file

15.0.1.0.0.14

1 file

15.0.1.0.0.13

1 file

15.0.1.0.0.12

1 file

15.0.1.0.0.11

1 file

15.0.1.0.0.10

1 file

15.0.1.0.0.9

1 file

15.0.1.0.0.8

1 file

15.0.1.0.0.7

1 file

15.0.1.0.0.6

1 file

15.0.1.0.0.5

1 file

15.0.1.0.0.4

1 file

15.0.1.0.0.3

1 file

15.0.1.0.0.2

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page