diff --git a/addons/stock/models/stock_move_line.py b/addons/stock/models/stock_move_line.py index 53d084a939c..4c27864777d 100644 --- a/addons/stock/models/stock_move_line.py +++ b/addons/stock/models/stock_move_line.py @@ -14,7 +14,7 @@ class StockMoveLine(models.Model): _name = "stock.move.line" _description = "Product Moves (Stock Move Line)" _rec_name = "product_id" - _order = "result_package_id desc, id" + _order = "result_package_id desc, location_id asc, location_dest_id asc, picking_id asc, id" picking_id = fields.Many2one( 'stock.picking', 'Transfer', auto_join=True, diff --git a/addons/stock/report/report_stockpicking_operations.xml b/addons/stock/report/report_stockpicking_operations.xml index 0a4cde56a45..9c20777ec08 100644 --- a/addons/stock/report/report_stockpicking_operations.xml +++ b/addons/stock/report/report_stockpicking_operations.xml @@ -84,48 +84,44 @@ - - - - - -
- - - - - - - - - - - - - - - -
- - - - -
- - -
- - - - -
- - - + + + + +
+ + + + + + + + + + + - - -
+ + +
+ + + + +
+ + +
+ + + + +
+ + + + + diff --git a/addons/stock/tests/test_stock_flow.py b/addons/stock/tests/test_stock_flow.py index d9251ad5cdd..4ea3501f2bb 100644 --- a/addons/stock/tests/test_stock_flow.py +++ b/addons/stock/tests/test_stock_flow.py @@ -1968,7 +1968,7 @@ class TestStockFlow(TestStockCommon): # Validates the two receipts and checks the move lines' lot. (receipt_1 | receipt_2).button_validate() - lots = self.env['stock.production.lot'].search([('product_id', '=', product_lot.id)]) + lots = self.env['stock.production.lot'].search([('product_id', '=', product_lot.id)], order='name asc') self.assertEqual(len(lots), 5) lot1, lot2, lot3, lot4, lot5 = lots self.assertEqual(lot1.name, 'lot-001') diff --git a/addons/stock_picking_batch/report/report_picking_batch.xml b/addons/stock_picking_batch/report/report_picking_batch.xml index 343ea888bd6..0efd70f8083 100644 --- a/addons/stock_picking_batch/report/report_picking_batch.xml +++ b/addons/stock_picking_batch/report/report_picking_batch.xml @@ -48,34 +48,40 @@

- - - -

-
- Responsible: - -

-

To take from:

- - - - - - - - - - - - +

+
+ Responsible: + +

+
ProductQuantityToTransfer - Lot/Serial Number - - Product Barcode - - Package -
+ + + + + + + + + + + + + + + + - @@ -111,14 +114,13 @@ -
ProductQuantityTransfer + Lot/Serial Number + + Product Barcode + + Package +
+

FROM +

+

TO +

+
@@ -94,9 +100,6 @@ - - - → + →
-

- + +