Odoo18-Base/addons/website_sale/populate/product_attribute.py
2025-03-10 10:52:11 +07:00

14 lines
381 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
from odoo.tools import populate
class ProductAttribute(models.Model):
_inherit = 'product.attribute'
def _populate_factories(self):
return super()._populate_factories() + [
('visibility', populate.randomize(['visible', 'hidden'], [6, 3])),
]