v 9.0 v 10.0 v 11.0 Third Party 474
Download for v 9.0
Technical Name product_variant_configurator
LicenseAGPL-3
Websitehttps://odoo-community.org/
Also available in version v 11.0 v 10.0
You bought this module and need support? Click here!

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.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
Trying to configure on odoo 10
by
Medha Joshi
on 10/2/17, 3:58 AM

We are getting following error Traceback (most recent call last): File "/odoo/odoo-server/odoo/http.py", line 638, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/odoo/odoo-server/odoo/http.py", line 675, in dispatch result = self._call_function(**self.params) File "/odoo/odoo-server/odoo/http.py", line 331, in _call_function return checked_call(self.db, *args, **kwargs) File "/odoo/odoo-server/odoo/service/model.py", line 119, in wrapper return f(dbname, *args, **kwargs) File "/odoo/odoo-server/odoo/http.py", line 324, in checked_call result = self.endpoint(*a, **kw) File "/odoo/odoo-server/odoo/http.py", line 933, in __call__ return self.method(*args, **kw) File "/odoo/odoo-server/odoo/http.py", line 504, in response_wrap response = f(*args, **kw) File "/odoo/odoo-server/addons/web/controllers/main.py", line 882, in call_button action = self._call_kw(model, method, args, {}) File "/odoo/odoo-server/addons/web/controllers/main.py", line 870, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/odoo/odoo-server/odoo/api.py", line 681, in call_kw return call_kw_multi(method, model, args, kwargs) File "/odoo/odoo-server/odoo/api.py", line 672, in call_kw_multi result = method(recs, *args, **kwargs) File "/odoo/odoo-server/addons/product_variant_configuarator/models/product_template.py", line 82, in action_open_attribute_prices return self.env.ref('product_variant_configurator.' File "/odoo/odoo-server/odoo/api.py", line 785, in ref return self['ir.model.data'].xmlid_to_object(xml_id, raise_if_not_found=raise_if_not_found) File "/odoo/odoo-server/odoo/addons/base/ir/ir_model.py", line 1051, in xmlid_to_object t = self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found) File "/odoo/odoo-server/odoo/addons/base/ir/ir_model.py", line 1035, in xmlid_to_res_model_res_id return self.xmlid_lookup(xmlid)[1:3] File "", line 2, in xmlid_lookup File "/odoo/odoo-server/odoo/tools/cache.py", line 87, in lookup value = d[key] = self.method(*args, **kwargs) File "/odoo/odoo-server/odoo/addons/base/ir/ir_model.py", line 1024, in xmlid_lookup raise ValueError('External ID not found in the system: %s' % xmlid) ValueError: External ID not found in the system: product_variant_configurator.attribute_price_action