Skip to content

Commit

Permalink
[FIX] account_invoice_line_lot: wrong definition causes error
Browse files Browse the repository at this point in the history
  • Loading branch information
oihane committed Dec 2, 2024
1 parent cd8b973 commit 4123730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_invoice_line_lot/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"

def _prepare_invoice_line(self, qty):
values = super()._prepare_invoice_line(qty)
def _prepare_invoice_line(self, **optional_values):
values = super()._prepare_invoice_line(**optional_values)
cond = [("sale_line_id", "=", self.id)]
moves = self.env["stock.move"].search(cond)
for move in moves:
Expand Down

0 comments on commit 4123730

Please sign in to comment.