2
0
account-financial-tools/account_move_line_purchase_info/models/account_move.py
2023-06-05 15:45:05 +02:00

17 lines
444 B
Python

# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
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,
)