Skip to content

Commit

Permalink
Merge PR #1687 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 30, 2024
2 parents 46f39e5 + 642916b commit fe2f644
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions stock_picking_batch_extended/models/stock_batch_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def action_print_picking(self):
pickings = self.mapped("picking_ids")
if not pickings:
raise UserError(_("Nothing to print."))
return self.env.ref(
"stock_picking_batch_extended.action_report_batch_picking"
).report_action(self)
return self.env.ref("stock.action_report_delivery").report_action(
self.picking_ids
)

def remove_undone_pickings(self):
"""Remove of this batch all pickings which state is not done / cancel."""
Expand Down
2 changes: 1 addition & 1 deletion stock_picking_batch_extended/tests/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_print_picking(self):
report_name = result.get("report_name")
self.assertEqual(
result.get("report_name"),
"stock_picking_batch_extended.report_batch_picking",
"stock.report_deliveryslip",
)
report_pdf = self.env["ir.actions.report"]._render(report_name, self.batch.ids)
self.assertGreaterEqual(len(report_pdf[0]), 1)
Expand Down

0 comments on commit fe2f644

Please sign in to comment.