Skip to content
Permalink
Browse files

[FIX] point_of_sale: picking on move line

- Activate Lots and S/N
- Track a product A by unique S/N
- Receive one unit of A
- Sell the unit of A through the POS
- Go to Invnetory > Products > Lots/Serial Numbers, and open the
  Upstream Traceability report

The line corresponding to the outgoing move line is not linked to the
corresponding picking.

The field `picking_id` is empty on the `stock.move.line`, so the link is
not directly retrieved.

Related to #31879 which fixes the issue for existing `stock.move.line`.
opw-1939413

closes #31880

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
  • Loading branch information...
nim-odoo committed Mar 15, 2019
1 parent e7c9235 commit a03bd36ec82c32f36d26714e1040418d9113b523
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/point_of_sale/models/pos_order.py
@@ -855,6 +855,7 @@ def set_pack_operation_lot(self, picking=None):
for pack_lot in pack_lots:
lot_id, qty = pack_lot['lot_id'], pack_lot['qty']
self.env['stock.move.line'].create({
'picking_id': move.picking_id.id,
'move_id': move.id,
'product_id': move.product_id.id,
'product_uom_id': move.product_uom.id,

0 comments on commit a03bd36

Please sign in to comment.
You can’t perform that action at this time.