Provides an abstract model for product variant configuration.
Project description
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:
Go to Sales > Configuration > Settings, and select “Variants (Sell variants of a product using attributes (size, color, etc.))” on “Product Catalog” section.
Go to Sales > Products > Products, and select a product.
On the Attributes & Variants tab edit the value of the field Variant Creation.
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)
Go to Sales > Products > Product Variants.
Click on “New” button for creating a new one.
On the field “Product Template”, select a product template that has several attributes.
A table with the attributes of the template will appear below.
Select all the attribute values and click on “Save” button.
A new product variant will be created for that attributes.
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:
The product.configurator is an abstract model, hence, to be used it must be inherited in your model:
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
Contributors
Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
Pedro M. Baeza <pedro.baeza@tecnativa.com>
Ana Juaristi <ajuaristio@gmail.com>
Thomas Binsfeld <thomas.binsfeld@acsone.eu>
Zakaria Makrelouf (acsone) <z.makrelouf@gmail.com>
Stéphane Bidoul <stephane.bidoul@acsone.eu>
Laurent Mignon <laurent.mignon@acsone.eu>
David Vidal <david.vidal@tecnativa.com>
Simone Versienti <s.versienti@apuliasoftware.it>
Adria Gil Sorribes <adria.gil@forgeflow.com>
Héctor Villarreal Ortega <hector.villarreal@forgeflow.com>
Manuel Regidor <manuel.regidor@sygel.es>
Valentín Vinagre <valentin.vinagre@sygel.es>
Maintainers
This module is maintained by the OCA.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo_addon_product_variant_configurator-17.0.1.0.0.5-py3-none-any.whl
.
File metadata
- Download URL: odoo_addon_product_variant_configurator-17.0.1.0.0.5-py3-none-any.whl
- Upload date:
- Size: 295.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0d5f58e2b9797013c08730c9cf067b61dc3210949eef36ed23c0e0626cb1124 |
|
MD5 | 483c537c9d7a8e3ce6a6165d51a8364e |
|
BLAKE2b-256 | fab375043ac82836ab5ea37af5c1e34956d49ccc9612a4119f4a613a2e2acc97 |