[FIX] product/populate: wrong population size model attribute.

The attribute defined isn't the right one, thus on population,
those models are populated with the default _populate_sizes defined in base.

closes odoo/odoo#50464

X-original-commit: ad7436bb9d2b965f926aa2d1f45a89ea5f6dfc9f
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Victor Feyens
2020-04-30 12:05:06 +00:00
parent 0157499600
commit 1828d6db0d
+2 -2
View File
@@ -10,7 +10,7 @@ _logger = logging.getLogger(__name__)
class ProductCategory(models.Model):
_inherit = "product.category"
_populate_database_scales = {"low": 50, "medium": 500, "high": 30000}
_populate_sizes = {"small": 50, "medium": 500, "large": 30000}
def _populate_factories(self):
def get_name(values=None, counter=0, complete=False, **kwargs):
@@ -23,7 +23,7 @@ class ProductCategory(models.Model):
class ProductProduct(models.Model):
_inherit = "product.product"
_populate_database_scales = {"low": 150, "medium": 5000, "high": 60000}
_populate_sizes = {"small": 150, "medium": 5000, "large": 60000}
def _populate_factories(self):