Skip to content

Commit

Permalink
[FIX] rma: bad field reference in rma line
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHForgeFlow committed Oct 30, 2023
1 parent dd2c74b commit 3a11b21
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 16 deletions.
1 change: 0 additions & 1 deletion rma/models/rma_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ def _prepare_rma_line_from_stock_move(self, sm, lot=False):
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
Expand Down
4 changes: 1 addition & 3 deletions rma_account/models/rma_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ def _prepare_rma_line_from_inv_line(self, line):
"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
Expand Down
4 changes: 1 addition & 3 deletions rma_account/wizards/rma_add_account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def _prepare_rma_line_from_inv_line(self, line):
"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
Expand Down
4 changes: 1 addition & 3 deletions rma_purchase/models/rma_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ def _prepare_rma_line_from_po_line(self, line):
"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,
Expand Down
4 changes: 1 addition & 3 deletions rma_purchase/wizards/rma_add_purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def _prepare_rma_line_from_po_line(self, line):
"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,
Expand Down
4 changes: 1 addition & 3 deletions rma_sale/models/rma_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ def _prepare_rma_line_from_sale_order_line(self, line):
"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,
Expand Down

0 comments on commit 3a11b21

Please sign in to comment.