mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 13:12:02 +02:00
20 lines
499 B
Python
20 lines
499 B
Python
# Copyright 2022 CreuBlanca
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class MaintenanceEquipment(models.Model):
|
|
|
|
_inherit = "maintenance.equipment"
|
|
|
|
purchase_id = fields.Many2one(
|
|
comodel_name="purchase.order",
|
|
related="purchase_line_id.order_id",
|
|
string="Purchase",
|
|
readonly=True,
|
|
)
|
|
purchase_line_id = fields.Many2one(
|
|
comodel_name="purchase.order.line",
|
|
readonly=True,
|
|
)
|