Commit 26f9cbd8 by Yvon Kerdoncuff

in do_stock_movement, try to bypass stock reservation be using action_done…

in do_stock_movement, try to bypass stock reservation be using action_done instead of stock immediate transfer process method
parent 9bad8548
Pipeline #3913 failed with stage
......@@ -101,8 +101,7 @@ class CagetteStock(models.Model):
picking = api.create('stock.picking', fields)
if not (picking is None):
# Generate accounting writings for this picking
api.execute('stock.picking', 'stock_immediate_transfer', [picking])
api.execute('stock.picking', 'action_done', [picking])
except Exception as e:
if not (marshal_none_error in str(e)):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment