pos icon indicating copy to clipboard operation
pos copied to clipboard

[16.0][FIX] pos_stock_available_online: stock move updates

Open danielduqma opened this issue 4 months ago • 0 comments

Make stock updates not only on quant updates, but also when a stock move changes its state.

This fixes two bugs:

  • Stock is not updated when a new incoming move is ready, or when a ready one is cancelled. This triggers notification in both outgoing and incoming warehouses

  • Stock is decreased twice because when quant is updated, move is taken in account because it is not yet on 'done' state. This was reported in https://github.com/OCA/pos/issues/1039, but the proposed solution in https://github.com/OCA/pos/pull/1041 was local and only concerned moves from PoS orders

FL-556-4139

danielduqma avatar Oct 01 '24 13:10 danielduqma