diff --git a/stock_picking_batch_report/__manifest__.py b/stock_picking_batch_report/__manifest__.py index b93c4e2..f54ec50 100644 --- a/stock_picking_batch_report/__manifest__.py +++ b/stock_picking_batch_report/__manifest__.py @@ -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", diff --git a/stock_picking_batch_report/models/stock_picking_batch.py b/stock_picking_batch_report/models/stock_picking_batch.py index 38aa50b..c167d51 100644 --- a/stock_picking_batch_report/models/stock_picking_batch.py +++ b/stock_picking_batch_report/models/stock_picking_batch.py @@ -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") diff --git a/stock_picking_batch_report/reports/report_picking_batch.xml b/stock_picking_batch_report/reports/report_picking_batch.xml index 4033f52..566d081 100644 --- a/stock_picking_batch_report/reports/report_picking_batch.xml +++ b/stock_picking_batch_report/reports/report_picking_batch.xml @@ -1,333 +1,257 @@ - -