mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] fp-303: add changes from 14.0
This commit is contained in:
committed by
JasminSForgeFlow
parent
4289ce1b39
commit
b166f764c5
@@ -6,7 +6,7 @@
|
||||
"category": "RMA",
|
||||
"summary": "RMA from PO",
|
||||
"license": "LGPL-3",
|
||||
"author": "ForgeFlow",
|
||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/ForgeFlow/stock-rma",
|
||||
"depends": ["rma_account", "purchase"],
|
||||
"data": [
|
||||
|
||||
@@ -4,3 +4,4 @@ from . import purchase_order
|
||||
from . import purchase_order_line
|
||||
from . import rma_operation
|
||||
from . import procurement
|
||||
from . import account_move
|
||||
|
||||
13
rma_purchase/models/account_move.py
Normal file
13
rma_purchase/models/account_move.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user