Skip to main content
Odoo Community Association

Product Profile

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

This module provides easier products configuration (in one click). It allows to configure a product template with only one field.

image1

Main use case: a lot of modules are installed (mrp, purchase, sale, pos) and products configuration becomes harder for end users: too many fields to take care of.

You are concerned that at any time a product might be not configured correctly: this module is your friend.

Thanks to this module, a lot of complexity becomes hidden (default behavior) to the end user and usability is optimal.

It eases as well the data migration by only specifying the profile field instead of all fields which depend on it.

Note: This module is meant to be used by skilled people in database fields creation within the ERP framework.

Additional feature: a default value can be attached to a profile (see § Configuration, part 3)

Table of contents

Configuration

  1. Create your own profile here: Sales > Configuration > Product > Product Profiles

    Product Profile List View

    New Product Profile

  2. Extend “product.profile” model to add fields from product.template, either in normal mode or default mode (see note section below). These fields should be identical to their original fields (especially “required” field attribute).

    class ProductProfile(models.Model):
      """ Require dependency on sale, purchase and point_of_sale modules
      """
    
      _inherit = "product.profile"
    
      def _get_types(self):
          return [("product", "Stockable Product"),
                  ("consu", 'Consumable'),
                  ("service", "Service")]
    
      sale_ok = fields.Boolean(
          string="Can be Sold",
          help="Specify if the product can be selected in a sales order line.")
      purchase_ok = fields.Boolean(
          string="Can be Purchased")
      available_in_pos = fields.Boolean()
  3. Insert data (xml or csv) and define values for each field defined above for each configuration scenario

Note : You might want to declare profile fields as defaults. To do this, just prefix the field with “profile_default”.

class ProductProfile(models.Model):
  profile_default_categ_id = fields.Many2one(
      "product.category",
      string="Default category",
    )
  profile_default_tag_ids = fields.Many2many(
      comodel_name="product.template.tag",
      string="Tags",
    )

Default fields only influence the records the first time they are set. - if the profile is modified, changes are not propagated to all the records that have this profile - if the record previously had another profile, changing profile will not influence default values

Usage

Assign a value to the profile field in the product template form. Then, all fields which depend on this profile will be set to the right value at once.

If you deselect the profile value, all these fields keep the same value and you can change them manually (back to standard behavior).

Profiles are also defined as search filter and group.

Known issues / Roadmap

  • Streamlined behaviour of default/nondefault fields in every situation

  • More robust/less error-prone functionality for required fields or fields implicated in workflows

  • More flexible/configurable behaviour for profile fields (instead of only default/nondefault fields)

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

  • Akretion

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.

Current maintainers:

bealdav sebastienbeau kevinkhao

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

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

Release files for odoo-addon-product-profile 18.0.1.0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-product-profile 18.0.1.0.0.6
File Interpreter ABI Platform
odoo_addon_product_profile-18.0.1.0.0.6-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_product_profile-18.0.1.0.0.6-py3-none-any.whl

Download URL odoo_addon_product_profile-18.0.1.0.0.6-py3-none-any.whl
Size 294.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e0a1fbac47e21993882b86d14bcc1226a8242ed068b4f3fb70ceb710c0cf905
BLAKE2b-256 checksum
How to use checksums
6fed67471cfbeb49dd25f57249e095d3389aa35a3cb53cd8b611f245686972a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page