Skip to main content

Provides an abstract model for product variant configuration.

Project description

License: AGPL-3

Product Variant Configurator

Provides an abstract model for product variant configuration.

Installation

To install this module, you need to:

  1. Add this module to your addons path.

  2. Restart your odoo server.

  3. As Admin user, update the module list by going to: Settings > Update Modules List.

  4. Search for your module and click install.

Configuration

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

  1. Go to Warehouse > Products, and select a product.

  2. on the Variants tab edit the value of the field Variant Creation.

  3. 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 Warehouse > Products > Product Categories, select the category and check the checkbox Don't create variants automatically.

Usage

For developer 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")
Try me on Runbot

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 smashing it by providing a detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Maintainer

Odoo Community Association

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.

To contribute to this module, please visit https://odoo-community.org.

Project details


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

File details

Details for the file odoo9_addon_product_variant_configurator-9.0.1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo9_addon_product_variant_configurator-9.0.1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 c5cd75fd2c515601db230ebb095f152f4e3911e3408c8b306f7e5c86a191b74f
MD5 8e576f0f6d19f7bb5e914ada7fab77f4
BLAKE2b-256 348050495735dbbb05659ac77e65cf5246f1ab90efabe7a032dc2b2d8e7103ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page