mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] rma: bad field reference in rma line
This commit is contained in:
@@ -582,7 +582,6 @@ class RmaOrderLine(models.Model):
|
||||
operation.location_id.id
|
||||
or operation.in_warehouse_id.lot_rma_id.id
|
||||
or operation.out_warehouse_id.lot_rma_id.id
|
||||
or warehouse.lot_rma_id.id
|
||||
),
|
||||
}
|
||||
return data
|
||||
|
||||
@@ -227,9 +227,7 @@ class RmaOrderLine(models.Model):
|
||||
"in_route_id": operation.in_route_id.id or route.id,
|
||||
"out_route_id": operation.out_route_id.id or route.id,
|
||||
"location_id": (
|
||||
operation.location_id.id
|
||||
or operation.in_warehouse_id.lot_rma_id.id
|
||||
or warehouse.lot_rma_id.id
|
||||
operation.location_id.id or operation.in_warehouse_id.lot_rma_id.id
|
||||
),
|
||||
}
|
||||
return data
|
||||
|
||||
@@ -100,9 +100,7 @@ class RmaAddAccountMove(models.TransientModel):
|
||||
"in_route_id": operation.in_route_id.id or route.id,
|
||||
"out_route_id": operation.out_route_id.id or route.id,
|
||||
"location_id": (
|
||||
operation.location_id.id
|
||||
or operation.in_warehouse_id.lot_rma_id.id
|
||||
or warehouse.lot_rma_id.id
|
||||
operation.location_id.id or operation.in_warehouse_id.lot_rma_id.id
|
||||
),
|
||||
}
|
||||
return data
|
||||
|
||||
@@ -172,9 +172,7 @@ class RmaOrderLine(models.Model):
|
||||
"receipt_policy": operation.receipt_policy,
|
||||
"currency_id": line.currency_id.id,
|
||||
"location_id": (
|
||||
operation.location_id.id
|
||||
or operation.in_warehouse_id.lot_rma_id.id
|
||||
or warehouse.lot_rma_id.id
|
||||
operation.location_id.id or operation.in_warehouse_id.lot_rma_id.id
|
||||
),
|
||||
"refund_policy": operation.refund_policy,
|
||||
"delivery_policy": operation.delivery_policy,
|
||||
|
||||
@@ -97,9 +97,7 @@ class RmaAddPurchase(models.TransientModel):
|
||||
"out_route_id": operation.out_route_id.id or route,
|
||||
"receipt_policy": operation.receipt_policy,
|
||||
"location_id": (
|
||||
operation.location_id.id
|
||||
or operation.in_warehouse_id.lot_rma_id.id
|
||||
or warehouse.lot_rma_id.id
|
||||
operation.location_id.id or operation.in_warehouse_id.lot_rma_id.id
|
||||
),
|
||||
"refund_policy": operation.refund_policy,
|
||||
"delivery_policy": operation.delivery_policy,
|
||||
|
||||
@@ -160,9 +160,7 @@ class RmaOrderLine(models.Model):
|
||||
"receipt_policy": operation.receipt_policy,
|
||||
"currency_id": line.currency_id.id,
|
||||
"location_id": (
|
||||
operation.location_id.id
|
||||
or operation.in_warehouse_id.lot_rma_id.id
|
||||
or warehouse.lot_rma_id.id
|
||||
operation.location_id.id or operation.in_warehouse_id.lot_rma_id.id
|
||||
),
|
||||
"refund_policy": operation.refund_policy,
|
||||
"delivery_policy": operation.delivery_policy,
|
||||
|
||||
Reference in New Issue
Block a user