Skip to content

Commit

Permalink
[REF] rename back method _prepare_rma_line to _prepare_rma_line_from_…
Browse files Browse the repository at this point in the history
…sale_order_line
  • Loading branch information
florian-dacosta committed Jul 31, 2024
1 parent 820af8c commit 0bcd702
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rma_sale/wizards/rma_add_sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def select_all(self):
"target": "new",
}

def _prepare_rma_line(self, line, product, quantity, uom_id=False, lot=None):
def _prepare_rma_line_from_sale_order_line(
self, line, product, quantity, uom_id=False, lot=None
):
operation = self.rma_id.operation_default_id
if not operation:
operation = line.product_id.rma_customer_operation_id
Expand Down Expand Up @@ -216,7 +218,7 @@ def add_lines(self):
line, existing_sale_line, lot=lot
):
continue
data = self._prepare_rma_line(
data = self._prepare_rma_line_from_sale_order_line(
line, product, qty, uom_id=uom.id, lot=lot
)
rec = rma_line_obj.create(data)
Expand All @@ -229,7 +231,7 @@ def add_lines(self):
if not self._should_create_rma_line(line, existing_sale_line):
continue
# we can't have lot management based on sale order line
data = self._prepare_rma_line(
data = self._prepare_rma_line_from_sale_order_line(
line,
line.product_id,
line.product_uom_qty,
Expand Down

0 comments on commit 0bcd702

Please sign in to comment.