oca-maintenance/odoo-bringout-oca-maintenance-maintenance_timesheet/maintenance_timesheet/models/maintenance_equipment.py
Ernad Husremovic 5a635dd914 Add oca-maintenance submodule with 28 maintenance modules
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 17:23:31 +02:00

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