# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models from odoo.tools import populate class Forum(models.Model): _inherit = 'forum.forum' _populate_sizes = {'small': 1, 'medium': 3, 'large': 10} def _populate_factories(self): return [ ('name', populate.constant('Forum_{counter}')), ('description', populate.constant('This is forum number {counter}')) ]