mirror of
https://github.com/bringout/oca-maintenance.git
synced 2026-04-21 05:02:04 +02:00
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
403 B
Python
17 lines
403 B
Python
# Copyright 2019 Creu Blanca
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class MaintenanceRequest(models.Model):
|
|
|
|
_inherit = "maintenance.request"
|
|
|
|
@api.model
|
|
def _default_remote(self):
|
|
return self.remote.id
|
|
|
|
remote_id = fields.Many2one(
|
|
"res.remote", readonly=True, default=lambda r: r._default_remote()
|
|
)
|