# -*- coding: utf-8 -*-

from odoo import fields, models, api
import base64
import datetime
from odoo.exceptions import UserError

from datetime import datetime, date, timedelta

class product_template_inherit(models.Model):
    _inherit = 'product.template'

    @api.model
    def year_selection(self):
        year = 2000  # replace 2000 with your a start year
        year_list = []
        while year != 2030:  # replace 2030 with your end year
            year_list.append((str(year), str(year)))
            year += 1
        return year_list



    for_year  = fields.Selection( year_selection,string="Année",default="2019")
    res_createur_ids  =  fields.Many2one('res.partner',string="Créateur")





