Skip to content

Commit

Permalink
[FIX] don't restrict lot if return product is different
Browse files Browse the repository at this point in the history
  • Loading branch information
sbejaoui committed Oct 17, 2024
1 parent 3a71bc9 commit c01af5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rma_lot/wizards/stock_return_picking_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ class StockReturnPickingLine(models.TransientModel):

def _prepare_rma_vals(self):
vals = super()._prepare_rma_vals()
vals.update({"lot_id": self.lot_id.id})
if not self.rma_operation_id.different_return_product:
vals.update({"lot_id": self.lot_id.id})
return vals
3 changes: 2 additions & 1 deletion rma_sale_lot/wizards/sale_order_line_rma_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ def _compute_lots_visible(self):
def _prepare_rma_values(self):
self.ensure_one()
values = super()._prepare_rma_values()
values["lot_id"] = self.lot_id.id
if not self.operation_id.different_return_product:
values["lot_id"] = self.lot_id.id
return values

0 comments on commit c01af5d

Please sign in to comment.