[FIX] stock: lock/unlock show details view
It is not possible to work directly on the operation tab when the detailed operation tab is available. On detailed operations page it is now impossible to add a new move line when the picking is done and locked. This commit add some condition in the view and add a check in the move line creation. If the move line has a picking but no move then we create it (mark as done directly)
Showing
- addons/stock/models/stock_move_line.py 21 additions, 0 deletionsaddons/stock/models/stock_move_line.py
- addons/stock/tests/test_move.py 42 additions, 0 deletionsaddons/stock/tests/test_move.py
- addons/stock/views/stock_picking_views.xml 2 additions, 2 deletionsaddons/stock/views/stock_picking_views.xml
Loading
Please register or sign in to comment