Files
stock-rma/rma_purchase/models/account_move.py
Jordi Ballester Alomar bb9d9f5641 [FIX] rma_account: get correct account when a bill refund is created
and reference to a supplier rma is made
2022-10-25 17:59:29 +02:00

14 lines
396 B
Python

# Copyright 2017-22 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from odoo import models
class AccountMove(models.Model):
_inherit = "account.move"
def _prepare_invoice_line_from_rma_line(self, line):
data = super(AccountMove, self)._prepare_invoice_line_from_rma_line(line)
data["purchase_line_id"]: line.id
return data