-
- Downloads
[REF] stock: make picking button_validate multi
So we have to adapt - the sanity checks - the immediate/backorder wizards - split the call to _action_done with and without backorder This is a preliminary work to remove all the override in stock_picking_batch and to allow choosing the pickings to immediate or backorder directly in the wizards. Before this commit, both wizards were calling _action_done and one another. We make them go back through `button_validate` so that it is more sane to handle and allow future extensions to add pre-action done wizards. Also the first part of button_validate is some sanity check. We adapt them to be multi (inside of a loop over self) without any other changes. Now the wizard can work on the records (immediate: write the done quantities) or work with the context (backorder: picking ids to not backorder in the context). Also we adapt the stock sms weird wizard (a confirmation wizard but the feature is auto installed? wth). Now there it isn't manually called in the middle of button_validate but it uses the pre_action_done_hook. task-2069646
Showing
- addons/stock/models/stock_picking.py 94 additions, 80 deletionsaddons/stock/models/stock_picking.py
- addons/stock/views/stock_picking_views.xml 13 additions, 0 deletionsaddons/stock/views/stock_picking_views.xml
- addons/stock/wizard/stock_backorder_confirmation.py 11 additions, 3 deletionsaddons/stock/wizard/stock_backorder_confirmation.py
- addons/stock/wizard/stock_immediate_transfer.py 15 additions, 12 deletionsaddons/stock/wizard/stock_immediate_transfer.py
- addons/stock/wizard/stock_immediate_transfer_views.xml 3 additions, 2 deletionsaddons/stock/wizard/stock_immediate_transfer_views.xml
- addons/stock_dropshipping/tests/test_stockvaluation.py 1 addition, 1 deletionaddons/stock_dropshipping/tests/test_stockvaluation.py
- addons/stock_sms/models/stock_picking.py 36 additions, 23 deletionsaddons/stock_sms/models/stock_picking.py
- addons/stock_sms/wizard/confirm_stock_sms.py 15 additions, 11 deletionsaddons/stock_sms/wizard/confirm_stock_sms.py
- addons/stock_sms/wizard/confirm_stock_sms_views.xml 0 additions, 4 deletionsaddons/stock_sms/wizard/confirm_stock_sms_views.xml
Loading
Please register or sign in to comment