When a stock.picking
is created after confirming a pos.order
, the generated stock.move
lines do not keep any reference to the products' current lot (stock.production.lot
) as they do not have any related stock.quant
. It is due because of the lack of any procurement_id (procurement.order
) and group_id (procurement.group
) values in the stock.move
. Also, the PoS calls force_assign
instead of action_assign
and this does not generate any quant that could keep the product lot.
Steps to reproduce
- Create new DB with demo data.
- Enable the options Track lots or serial numbers and Expiry date on serial numbers in
Settings > Warehouse
. - Ensure that the current user has the access right Manage Push and Pull inventory flows.
- Edit the location Physical Locations / WH / Stock and set the Removal Strategy as First Expiry First Out (FEFO).
- Edit the lot Lot0 for Ice cream in
Warehouse > Traceability > Serial Numbers
. Set date 10 days ahead current date in Removal Date. - Edit the product [1] Ice Cream. Ensure that it has the type Stockable Product and that Available in the Point of Sale and Full Lots Traceability are checked. Update the Quantity On Hand and set a new quantity in the previously configured lot.
Current behavior
- Create and confirm a PoS Order - in the
pos.ui
view - with any quantity of [1] Ice Cream. - Go to
Warehouse > All Operations > PoS Orders
and click Transfer in the createdstock.picking
. - The lot is not automatically assigned.