Odoo18-Base/addons/website_sale_comparison/models/product_attribute.py
2025-01-06 10:57:38 +07:00

17 lines
511 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ProductAttribute(models.Model):
_inherit = 'product.attribute'
_order = 'category_id, sequence, id'
category_id = fields.Many2one(
comodel_name='product.attribute.category',
string="eCommerce Category",
index=True,
help="Set a category to regroup similar attributes under the same section in the Comparison"
" page of eCommerce.",
)