# Copyright 2019 Solvos Consultoría Informática (<http://www.solvos.es>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import models


class MaintenanceEquipment(models.Model):
    _inherit = "maintenance.equipment"

    def _prepare_project_from_equipment_values(self):
        data = super()._prepare_project_from_equipment_values()
        data["allow_timesheets"] = True
        return data
