-
- Downloads
[FIX] {mrp_,}account,sale_{stock,mrp}: display lots in invoice
When invoicing a tracked product, the lots/SN delivered (or the related quantities) are not always the correct ones displayed on the printed invoice To reproduce the issues: 1. In Settings, enable "Display Lots & Serial Numbers on Invoices" 2. Create a product P: - Storable - Tracked by lot 3. Update its quantity > 5 with lot L Use case 01: 4. Create and confirm a SO with 5 x P 5. Process the delivery 6. Create an invoice 7. Edit the invoice line: - Quantity: 1 8. Post and print the invoice Error: The quantity related to lot L is 5, it should be 1 Use case 02: 4. Edit P: - Invoicing Policy: Ordered quantities 5. Create and confirm a SO with 1 x P 6. Create and post the invoice 7. Process the delivery 8. Print the invoice Error: There isn't any information about delivered lot L Use case 03: 4. Create and confirm a SO with 3 x P 5. Deliver 1 x P (with backorder) 6. Invoice 1 x P + Post the invoice (-> INV01) 7. Deliver 2 x P 8. Reset, post INV01 again and print it Error: The quantity related to L is 3, it should be 1. Moreover, if the user then invoices the 2 others P, posts and prints this second invoice, it won't contain any information about L OPW-2730270 closes #81444 closes odoo/odoo#85115 Signed-off-by:William Henrotin (whe) <whe@odoo.com> Co-authored-by:
Adrien Widart <awt@odoo.com> Co-authored-by:
Florent de Labarre <florent.mirieu@gmail.com>
Showing
- addons/account/models/account_move.py 10 additions, 0 deletionsaddons/account/models/account_move.py
- addons/mrp_account/models/__init__.py 1 addition, 0 deletionsaddons/mrp_account/models/__init__.py
- addons/mrp_account/models/account_move.py 26 additions, 0 deletionsaddons/mrp_account/models/account_move.py
- addons/sale_mrp/tests/__init__.py 2 additions, 1 deletionaddons/sale_mrp/tests/__init__.py
- addons/sale_mrp/tests/test_sale_mrp_report.py 70 additions, 0 deletionsaddons/sale_mrp/tests/test_sale_mrp_report.py
- addons/sale_stock/models/account_move.py 51 additions, 74 deletionsaddons/sale_stock/models/account_move.py
- addons/sale_stock/tests/__init__.py 1 addition, 0 deletionsaddons/sale_stock/tests/__init__.py
- addons/sale_stock/tests/test_report.py 283 additions, 0 deletionsaddons/sale_stock/tests/test_report.py
Loading
Please register or sign in to comment