14 lines
381 B
Python
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])),
|
|
]
|