mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_move_line_purchase_info: Migration to 13.0
This commit is contained in:
committed by
ps-tubtim
parent
3d1924ef85
commit
5051e85a4a
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user