mirror of
https://github.com/bringout/oca-maintenance.git
synced 2026-04-25 13:22:04 +02:00
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
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
|