Skip to content

Commit

Permalink
[IMP] stock_picking_batch_extended_account: black, isort
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-teruel committed Dec 14, 2022
1 parent c08939e commit b898b8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stock_picking_batch_extended_account/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ class StockPicking(models.Model):

def action_done(self):
result = super().action_done()
picking_to_invoice_ids = self.env.context.get("picking_to_invoice_in_batch",)
picking_to_invoice_ids = self.env.context.get(
"picking_to_invoice_in_batch",
)
if not picking_to_invoice_ids:
return result
sales = self.filtered(lambda r: r.id in picking_to_invoice_ids).mapped(
Expand Down

0 comments on commit b898b8f

Please sign in to comment.