Skip to content
Snippets Groups Projects
Commit dad3043c authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] stock: reset return lines on picking change

parent ce416578
Branches
Tags
No related merge requests found
......@@ -46,7 +46,7 @@ class ReturnPicking(models.TransientModel):
@api.onchange('picking_id')
def _onchange_picking_id(self):
move_dest_exists = False
product_return_moves = []
product_return_moves = [(5,)]
if self.picking_id and self.picking_id.state != 'done':
raise UserError(_("You may only return Done pickings."))
for move in self.picking_id.move_lines:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment