[MIG] account_move_line_purchase_info: Migration to 13.0

This commit is contained in:
Adrià Gil Sorribes
2019-12-24 10:29:45 +01:00
committed by ps-tubtim
parent 3d1924ef85
commit 5051e85a4a
12 changed files with 48 additions and 124 deletions

View File

@@ -1,5 +1,5 @@
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (www.eficent.com)
# Copyright 2019 ForgeFlow S.L.
# (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
@@ -9,13 +9,6 @@ class AccountMoveLine(models.Model):
_inherit = "account.move.line"
purchase_line_id = fields.Many2one(
comodel_name="purchase.order.line",
string="Purchase Order Line",
ondelete="set null",
index=True,
)
purchase_id = fields.Many2one(
comodel_name="purchase.order",
related="purchase_line_id.order_id",