Skip to Content
Menu

Attribute Colors Wizard | Many2Many Color Widget

by
Odoo

45.05

v 17.0 Third Party
Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 357
Technical Name eis_attribute_colors
LicenseOPL-1
Websitehttps://expertpk.com
Versions 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 357
Technical Name eis_attribute_colors
LicenseOPL-1
Websitehttps://expertpk.com
Versions 16.0 17.0 18.0
expertpk.com logo
Community
Enterprise
Odoo.sh

Unlock True Color Matching with Odoo Product Attribute Color Module

🎨 Say goodbye to mismatched colors in your product attribute tags!

What is the Odoo Product Attribute Color Module?

Odoo’s default many2many_tags widget uses a set of 11 static colors, which often results in inconsistent color representations. For example, a tag meant to indicate a "red" product might incorrectly display a "blue" background. The Odoo Product Attribute Color module solves this problem by introducing a dynamic color customization feature. Tailor-made for businesses seeking precision and clarity in their inventory systems, this module enhances the default Odoo experience by allowing true color representation within Many2Many tags. Whether you’re managing a clothing line, furniture catalog, or any product with color variants, this module ensures your tags reflect reality with pinpoint accuracy.

Key Features

Dynamic Color Customization Widget

Replace the default widget with many2many_tags_color to ensure that the background color of your tags matches the actual product color. Simply provide the HTML color field, and watch as your tags display accurate color backgrounds like red for red and blue for blue.

Attribute Color Wizard

Easily manage and assign accurate colors to product attributes with a user-friendly wizard. This tool allows for quick selection from available colors or the creation of new ones, streamlining your product management process.

Why Choose Odoo Product Attribute Color?

Improved Accuracy

Ensure that each tag accurately reflects the product’s actual color, enhancing data integrity and user experience.

Enhanced Usability

Simplify the management of product attributes with intuitive tools that save time and reduce errors.

Visual Consistency

Maintain a consistent and professional appearance in your product catalog by eliminating random and mismatched tag colors.

How to Use the Odoo Product Attribute Color Module?

Join us as we dive into a comprehensive tutorial that covers everything from setting up the module to utilizing its features for maximum efficiency. We’ll walk you through the simple installation process, show you how to configure the widget, and demonstrate the power of the color wizard. Get Started Now! Enhance your Odoo interface today by integrating the Odoo Product Attribute Color module. Visit www.expertpk.com for more details and full support.

👇 Watch Our Detailed Demo

Start experiencing truly synchronized color management in Odoo!

Module Demo

🔗 Stay Connected

Don’t forget to like, comment, and subscribe! We love hearing from you, so let us know how this module has transformed your Odoo experience.

Website: www.expertpk.com

WhatsApp for Support: +923007888120

Easy Color Selection with Many2Many Tag Colors

This module enhances Odoo 17’s product variant management by introducing a custom widget and wizard for dynamic color handling. Below, you’ll find detailed instructions on how to use its features.

Using the Many2Many Tag Colors Widget

The many2many_tags_color widget allows you to display many2many field tags with exact colors from an HTML color code field, falling back to an indexed color or default black if none is provided.

Adding the Widget to a Many2Many Field

To use the widget, add it to your XML view for any many2many field (e.g., value_ids in product.template.attribute.line):

<field name="value_ids" widget="many2many_tags_color"
       options="{'color_code_field': 'html_color', 'color_field': 'color', 'no_create_edit': True}"
       context="{'default_attribute_id': attribute_id, 'show_attribute': False}"/>

Configuring the HTML Color Field

Ensure the related model (e.g., product.attribute.value) has an html_color field:

class ProductAttributeValue(models.Model):
    _inherit = 'product.attribute.value'

    html_color = fields.Char(string="HTML Color", help="HTML color code (e.g., #FF5733)")
Behavior:
Tags display the color from html_color (e.g., #FF5733 for orange-red). If html_color is empty or not found, it falls back to the color field (an integer 1-11 for predefined colors). If neither is present, tags default to black (#000000).

What Happens if No HTML Field is Found?

If color_code_field (e.g., html_color) isn’t specified or the field is empty: - The widget checks color_field (e.g., color) for an integer index. - If color_field is also absent or empty, tags use a default black background (#000000).

Using the Color Selection Wizard

The wizard simplifies managing color attributes by showing all available colors, allowing selection toggling, and adding new ones.

How to Use the Wizard

  1. Open a product template form.
  2. Navigate to the "Attributes & Variants" tab.
  3. For a color attribute, click "Choose Colors" (added by the module).
  4. The wizard opens, displaying: - All colors linked to the attribute (e.g., Red, Blue, Green). - Currently selected colors checked by default.
  5. Toggle the Selected column to choose colors.
  6. Add a new row to create a color (e.g., "Purple", #800080).
  7. Click "OK" to update the attribute’s selected values.

Wizard Capabilities

  • Comprehensive List: Shows all product.attribute.value records for the attribute, not just selected ones.
  • Easy Toggling: Use the boolean_toggle widget to select/deselect colors effortlessly.
  • New Color Creation: Add new colors with a name and HTML color code; duplicates are silently merged with existing values.
  • Seamless Sync: Updates value_ids and synchronizes product variants via Odoo’s PTAV system.

Why It’s Easy

The wizard’s intuitive tree view with editable rows and a color picker makes managing colors a breeze, reducing clicks and enhancing productivity.

Installation

  1. Place the module in your Odoo addons directory.
  2. Update the module list: odoo-bin -u all.
  3. Install via the Apps menu: search for "Odoo Product Attribute Color".

Support

For help, visit www.expertpk.com or contact us on WhatsApp: +92 3007888120.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

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 or have a question related to your purchase, please use the support page.