summaryrefslogtreecommitdiff
path: root/addons/base_import_module/controllers/__init__.py
diff options
context:
space:
mode:
authorWilliam Henrotin <whe@odoo.com>2021-04-16 09:30:23 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2021-05-10 14:39:39 +0000
commitd1e49723349cb5a44cf353f4dd12a1d55e076155 (patch)
treeafc21cbb952621d2af5ec4297bee6c70216f3e46 /addons/base_import_module/controllers/__init__.py
parent9b3506523659b06440b46664eeb83952cc30694e (diff)
[FIX] mrp: split call to write on stock move
You can, in a production order, change the quantity done of a stock move raw and change its initial demand ('To Consume' field) in the same transaction. This can lead to some issue as changing the quantity done will update the stock move line and changing the initial demand will unreserve the stock move thus impacting the stock move lines too. This commit will split the values to update of a stock in move in case the two fields have to be updated. First the stock move lines, then the initial demand. This commit also remove the default_product_uom_qty in the move_raw_ids fields. This ensure the onchanges do not create/edit any stock move lines with some reserved quantity. opw : 2451298 closes odoo/odoo#69377 Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/base_import_module/controllers/__init__.py')
0 files changed, 0 insertions, 0 deletions