mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] rma_purchase: purchase_line_id filled with wrong model.
"line" is an rma.order.line while purchase_line_id is a relation to purchase.order.line.
This commit is contained in:
@@ -9,7 +9,8 @@ class AccountMove(models.Model):
|
||||
|
||||
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
|
||||
if line.purchase_order_line_id:
|
||||
data["purchase_line_id"]: line.purchase_order_line_id.id
|
||||
return data
|
||||
|
||||
def action_post(self):
|
||||
|
||||
Reference in New Issue
Block a user