# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import fields, models


class Channel(models.Model):
    _inherit = 'slide.channel'

    nbr_certification = fields.Integer("Number of Certifications", compute='_compute_slides_statistics', store=True)


class Category(models.Model):
    _inherit = 'slide.category'

    nbr_certification = fields.Integer("Number of Certifications", compute='_count_presentations', store=True)
