[FIX] rma: bad field reference in rma line

This commit is contained in:
AaronHForgeFlow
2023-10-30 13:42:09 +01:00
parent 3785e3e0d0
commit cd8c8c663b
6 changed files with 5 additions and 16 deletions

View File

@@ -566,7 +566,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

View File

@@ -224,9 +224,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

View File

@@ -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

View File

@@ -167,9 +167,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,

View File

@@ -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,

View File

@@ -153,9 +153,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,