summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authoramoyaux <arm@odoo.com>2017-08-08 10:46:08 +0200
committeramoyaux <arm@odoo.com>2017-08-08 17:01:42 +0200
commit010b4a10003365109039d89b630413085625cf6b (patch)
tree0582b8f6fdb3dc09062086b2b52dba8ec158342c /addons/web/static/src/js/views/basic/basic_controller.js
parentcb1d5163658fa6c168438e8976cfa1ad73c3591c (diff)
[FIX] purchase : pickibng should be removed if there is no move line.
Use case to reproduce the bug: - Create a PO line with 10 product -> validate the picking - Edit the PO line and add 10 product -> it creates a new picking with a move line - Edit the PO line and remove the 10 products -> There still an empty picking that is not linked to the PO. This happens because the _create_or_update_picking in purchase only remove the stock move if it is empty but do not check anything on the picking. This commit add a check on the picking if there is no move inside, delete it.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions