mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] rma_purchase: Migration to 14.0
This commit is contained in:
@@ -43,7 +43,7 @@ class PurchaseOrderLine(models.Model):
|
||||
res = []
|
||||
if self.env.context.get("rma"):
|
||||
for purchase in self:
|
||||
invoices = self.env["account.invoice.line"].search(
|
||||
invoices = self.env["account.move.line"].search(
|
||||
[("purchase_line_id", "=", purchase.id)]
|
||||
)
|
||||
if purchase.order_id.name:
|
||||
@@ -56,8 +56,7 @@ class PurchaseOrderLine(models.Model):
|
||||
" ".join(
|
||||
str(x)
|
||||
for x in [
|
||||
inv.number
|
||||
for inv in invoices.mapped("invoice_id")
|
||||
inv.name for inv in invoices.mapped("move_id")
|
||||
]
|
||||
),
|
||||
purchase.product_id.name,
|
||||
|
||||
Reference in New Issue
Block a user