Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
13
maintenance_timesheet/models/maintenance_equipment.py
Normal file
13
maintenance_timesheet/models/maintenance_equipment.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user