'Changes picking state to done by processing the Stock Moves of the Picking
Normally that happens when the button "Done" is pressed on a Picking view.
@return: True'

@api.multi
def action_done(self):

    draft_moves = self.mapped('move_lines').filtered((lambda self: (self.state == 'draft')))
    todo_moves = self.mapped('move_lines').filtered((lambda self: (self.state in ['draft', 'assigned', 'confirmed'])))
    draft_moves.action_confirm()
    todo_moves.action_done()
    return True
