Skip to content

Commit

Permalink
[16.0][MIG] stock_picking_batch_report
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisOForgeFlow committed Jun 13, 2024
1 parent 89ffaeb commit c69a529
Show file tree
Hide file tree
Showing 3 changed files with 372 additions and 404 deletions.
2 changes: 1 addition & 1 deletion stock_picking_batch_report/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Stock Picking Batch Report",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"author": "Open Source Integrators, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"summary": "Stock Picking Batch Report",
Expand Down
17 changes: 1 addition & 16 deletions stock_picking_batch_report/models/stock_picking_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,4 @@ class StockPikcingBatch(models.Model):
_inherit = "stock.picking.batch"

def get_out_pickings(self):
for rec in self:
# TO BE Modified Later
# if (
# rec.picking_type_id.warehouse_id
# and rec.picking_type_id.warehouse_id.delivery_steps != "pick_ship"
# ):
# raise UserError(
# _(
# "This report is only available for "
# "warehouses configured with 2-steps delivery"
# )
# )
out_pickings = (
rec.mapped("move_ids").mapped("move_dest_ids").mapped("picking_id")
)
return out_pickings
return self.mapped("move_ids.move_dest_ids.picking_id")

Check warning on line 11 in stock_picking_batch_report/models/stock_picking_batch.py

View check run for this annotation

Codecov / codecov/patch

stock_picking_batch_report/models/stock_picking_batch.py#L11

Added line #L11 was not covered by tests
Loading

0 comments on commit c69a529

Please sign in to comment.