mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-24 12:32:04 +02:00
13 lines
427 B
Python
13 lines
427 B
Python
# 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
|