[FIX] stock_picking_batch: print move lines by location and product
Issue Before This Commit:
In the
batch transfer report, move lines are ordered by thepicking's batch sequence(picking_id.batch_sequence). When operators use the document to pick items, they have to scan through the report to find all lines for the same product. As a result, operatorslose time scanning the documentandrisk of missing lines.Steps to Reproduce:
- Install the
stock_picking_batchmodule.- Create multiple deliveries with several common products.
- Add these deliveries to a batch transfer and print the batch transfer report.
- Observe that product lines are ordered by location and then by picking.
Cause of the issue:
The batch transfer report currently sorts move lines by picking in the report (picking_id.batch_sequence). When the same product exists in another picking, This causes lines for the same product to be scattered across the report instead of being grouped together, causing the product to appear in multiple places in the document.
After This Commit:
In the report, move line sorting by picking (picking_id.batch_sequence) has been replaced with sorting by product (product_id.id). Move lines are now ordered by product, so similar products are displayed together in the document, This helps operators find products more quickly, reduces scanning effort, and makes the process more reliable.
TaskID-5379367
closes odoo/odoo#252064
X-original-commit: 52b5c717ada89b51bacbc29592009d116a6f4c98 Signed-off-by: Steve Van Essche svs@odoo.com Signed-off-by: Tushar Pravinbhai Mandani (tpma) tpma@odoo.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, …
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials.
Security
If you believe you have found a security issue, check our Responsible Disclosure page for details and get in touch with us via email.