[FIX] stock_picking_batch: do not confirm multiple times
Commit 324298967cb6 fix the call to _find_auto_batch() by calling _action_confirm() of the picking _after_ the assignation. This implies to confirming 2 times the pickings. Which is an issue in case an automatic orderpoint is searched and triggered. to fullfill the need in the source location. This commit change the call to action_confirm() to a call to _find_auto_batch() only closes odoo/odoo#117100 X-original-commit: eb6da7009a525665d4608243e260a2d07093abcc Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
@@ -23,5 +23,6 @@ class StockMove(models.Model):
|
||||
return res
|
||||
|
||||
def _assign_picking_post_process(self, new=False):
|
||||
super(StockMove, self)._assign_picking_post_process(new=new)
|
||||
self.picking_id.action_confirm()
|
||||
super()._assign_picking_post_process(new=new)
|
||||
for picking in self.picking_id:
|
||||
picking._find_auto_batch()
|
||||
|
||||
Reference in New Issue
Block a user