mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 18:52:04 +02:00
19 lines
527 B
Python
19 lines
527 B
Python
# Copyright 2022 Tecnativa - Víctor Martínez
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
from odoo import fields, models
|
|
|
|
|
|
class MaintenanceEquipment(models.Model):
|
|
_inherit = "maintenance.equipment"
|
|
|
|
move_id = fields.Many2one(
|
|
comodel_name="account.move",
|
|
related="move_line_id.move_id",
|
|
string="Move",
|
|
readonly=True,
|
|
)
|
|
move_line_id = fields.Many2one(
|
|
comodel_name="account.move.line",
|
|
string="Move line",
|
|
readonly=True,
|
|
)
|