summaryrefslogtreecommitdiff
path: root/odoo/tools/sql.py
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2016-09-08 14:19:30 +0200
committerJosse Colpaert <jco@odoo.com>2016-09-16 15:58:20 +0200
commit911de68e7079e18d58246233c0f5d7a9ab2f1c9c (patch)
treeecf416111e7c41ae18fb997621127b9cc0e692cf /odoo/tools/sql.py
parenta9a486303429e2d9505fcfe917d9c31800ec9d3d (diff)
[FIX] purchase: when updating amounts in picking, you need to take into account existing procurements
When increasing the amount on a confirmed purchase order line, an extra move is created in the incoming picking. When the purchase creates the moves in the picking on confirmation, it takes into account the procurements that triggered the purchase order and creates a move for every procurement. This is necessary in order to make the next steps ready. With this commit, when you increase the quantity, it will take into account the amounts of moves already created for a procurement and not link the new move with a procurement if not necessary. This case can be tested by confirming the PO with less than foreseen by the procurements and increasing the amount afterwards. (which is more of a corner case, but it is good to do things right)
Diffstat (limited to 'odoo/tools/sql.py')
0 files changed, 0 insertions, 0 deletions