mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 21:32:06 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
# 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()
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue