Product Attribute Groups: Min/Max Values, Yes/No and Required Attributes
by Aerya IT Solutions https://aerya.net$ 38.35
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Product Attribute Groups: Min/Max Values, Yes/No and Required Attributes
Put your attributes in groups such as Dimensions, Material and Features, decide how many values a product may take, add Yes/No attributes in one click and require the attributes each category needs.
Minimum and maximum number of values per attribute
Yes/No attributes with their values, translated
Required attributes per product category
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise with the data of a fictitious company.
on Odoo 20
no warnings
The problem
A backpack has a fabric, a frame, a capacity, a waterproof rating, dimensions and a warranty. In Odoo they all sit in one flat list of attribute lines, in the order they were added. Nothing says that a backpack takes at most two fabrics, that the waterproof flag is a yes or a no, or that every product of the category must declare its dimensions. Each of those rules lives in somebody's head, and the catalogue drifts.
What the module does
It organises the attributes and guards the data. You group attributes (Dimensions, Material, Technical data) and the product form shows its attribute lines by group. You give an attribute a minimum and a maximum number of values per product. You tick Yes/No attribute and the two values are created for you. You list on each product category the attributes every product must use. The checks run on the server, so an import or an integration follows the same rules as the form.
How it works, step by step
- Create the groups. Sales > Configuration > Attribute groups > New. A group has a name and an order, and a button that counts its attributes.
- Set the group on each attribute. Sales > Configuration > Attributes, the section "Group and limits" of the attribute form.
- Set the limits. Minimum values and Maximum values (0 means no limit). Tick Yes/No attribute where the answer is yes or no.
- Require attributes per category. On a product category, list the required attributes. Subcategories inherit them.
- Fill the product. On the product form the attribute lines follow the order of the groups, attributes without a group last.
- Find the gaps. On the category, the button "Products missing required attributes" lists the products that still miss one.
Attributes in groups
A product form that reads in order
The attribute lines of the product form are ordered by group, then by line, and attributes without a group come last. Dragging a line orders it inside its group, and the variant names follow the grouped order.
The attribute list has a group column, a group filter and a group-by. Filters also find the Yes/No attributes, the attributes with value limits and the attributes without a group.

The groups themselves
Dimensions, Material, Technical data
Groups work in the back office, with or without a website. Odoo's own attribute categories exist for the shop comparison page only; these groups are for the people who maintain the catalogue.

How many values a product takes
Minimum and maximum, checked on every save
A backpack takes at least one fabric and at most two, one frame, up to three capacities. The rule is checked on every save, from the form, an import or the API, and again when you change the limits of an attribute already in use.
A limit below zero, or a maximum below the minimum, is refused. Archived attribute lines are not checked.

Yes/No attributes
Two values, created for you
Tick Yes/No attribute: the Yes and No values are created, translated in each installed language, and a product takes one of them. A third value is refused, and so is switching an attribute that already has other values to Yes/No.

Required attributes per category
Every product of the category says its dimensions
List the attributes every product of a category must use. A product of that category (or of a subcategory) that misses one is refused with a message that names the product, the category and the attributes. Services are not checked, so down payments and delivery fees are left alone.
When a category gets new required attributes, existing products are listed, not changed.

What it does not do
- No shop filters by group: the website shop keeps Odoo's own attribute categories.
- Existing products are listed, not changed, when a category gets new required attributes.
- A product line with fewer or more values than the attribute allows is refused, not corrected.
- Archived attribute lines are not checked.
Requirements
| Odoo versions | 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Odoo apps | Sales; product variants enabled |
| Modules of ours | None |
| Where it runs | Odoo.sh and on-premise (Python module) |
| Languages | English, Spanish and Romanian |
Questions
Do the rules apply to imports?
Yes. The checks run on the server on every save: form, import and API.
What does a limit of 0 mean?
No limit. The maximum applies only when it is set.
Do I need the website?
No. Groups work in the back office, with or without a website.
Are services checked for required attributes?
No. Down payments and delivery fees are not checked.
What happens to products that already exist?
They are listed with the button on the category and left unchanged.
Are the Yes and No values translated?
Yes, in each installed language.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 20, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Aerya IT Solutions · Developed in the European Union · aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 374 |
| Technical Name |
aerya_product_attribute_group |
| License | OPL-1 |
| Website | https://aerya.net |
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