fix return wizard "set qty to 0"

Add method to auto unpack on return
This commit is contained in:
Alexis de Lattre
2022-02-17 15:56:11 +01:00
parent 4e57866115
commit ce2b927c35
2 changed files with 27 additions and 0 deletions

View File

@@ -14,4 +14,5 @@ class StockReturnPicking(models.TransientModel):
self.product_return_moves.write({'quantity': 0})
action = self.env.ref('stock.act_stock_return_picking').read()[0]
action['res_id'] = self.id
action['context'] = self._context
return action